Re: [PATCH] regulator: Fix build breakage on !REGULATOR

From: Joerg Roedel
Date: Wed Feb 04 2015 - 10:23:41 EST


On Wed, Feb 04, 2015 at 11:50:11AM +0100, Krzysztof Kozlowski wrote:
> > #ifdef CONFIG_REGULATOR
> > void regulator_has_full_constraints(void);
> > +int regulator_suspend_prepare(suspend_state_t state);
> > +int regulator_suspend_finish(void);
> > #else
> > static inline void regulator_has_full_constraints(void)
> > {
> > }
> > +static inline int regulator_suspend_prepare(suspend_state_t state)
> > +{
> > + return 0;
> > +}
> > +static inline int regulator_suspend_finish(void)
> > +{
> > + return 0;
> > +}
> > #endif
> >
> > #endif

My solution would have been:

diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 603820e..0f3f860 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -25,6 +25,7 @@ menuconfig ARCH_EXYNOS
select S5P_DEV_MFC
select SRAM
select MFD_SYSCON
+ select REGULATOR if PM_SLEEP
help
Support for SAMSUNG EXYNOS SoCs (EXYNOS4/5)

But that will work too, so:

Acked-by: Joerg Roedel <jroedel@xxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/