[PATCH] pxamci: remove an ifdef about CONFIG_REGULATOR
Mark Brown
broonie at opensource.wolfsonmicro.com
Tue May 10 16:36:30 EDT 2011
On Tue, May 10, 2011 at 10:02:14PM +0200, Antonio Ospite wrote:
> So, I am going to remove the ifdefs anyway but use IS_ERR_OR_NULL();
> how does that sound? Am I still missing anything?
Looks good to me.
> Or changing the regulator_get() stub to return an error (-ENOSYS?) might
> be worth it?
No, the whole point of stubbing out the API is that it allows most
consumers which just do simple enables and disables to run without
needing to worry if the regulator API is compiled in or not.
More information about the linux-arm-kernel
mailing list