regulator: simplify regulator_register() error handling