[PATCH v2 1/2] pxamci: remove the ifdef CONFIG_REGULATOR

Mark Brown broonie at opensource.wolfsonmicro.com
Wed May 11 09:07:05 EDT 2011


On Wed, May 11, 2011 at 12:19:05PM +0200, Antonio Ospite wrote:
> Don't wrap regulator_get() inside an ifdef CONFIG_REGULATOR anymore, as
> now it degenerates and returns NULL when the regulator framework is
> disabled (since commit be1a50d: regulator: Let drivers know when they
> use the stub API); and use IS_ERR_OR_NULL() to handle the stub function 
> correctly.
> 
> Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>

Reviewed-by: Mark Brown <broonie at opensource.wolfsonmicro.com>



More information about the linux-arm-kernel mailing list