|
@@ -191,15 +191,22 @@ struct regulator_init_data {
|
|
|
void *driver_data; /* core does not touch this */
|
|
|
};
|
|
|
|
|
|
-int regulator_suspend_prepare(suspend_state_t state);
|
|
|
-int regulator_suspend_finish(void);
|
|
|
-
|
|
|
#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
|