提交 48bb9fe4 编写于 作者: R Rafael J. Wysocki

MFD / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

After commit b2b49ccb (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.

Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
drivers/mfd/.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: NLee Jones <lee.jones@linaro.org>
上级 bbd6d050
...@@ -867,7 +867,7 @@ static void ab8500_gpadc_read_calibration_data(struct ab8500_gpadc *gpadc) ...@@ -867,7 +867,7 @@ static void ab8500_gpadc_read_calibration_data(struct ab8500_gpadc *gpadc)
gpadc->cal_data[ADC_INPUT_VBAT].offset); gpadc->cal_data[ADC_INPUT_VBAT].offset);
} }
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM
static int ab8500_gpadc_runtime_suspend(struct device *dev) static int ab8500_gpadc_runtime_suspend(struct device *dev)
{ {
struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); struct ab8500_gpadc *gpadc = dev_get_drvdata(dev);
......
...@@ -330,7 +330,7 @@ static int arizona_apply_hardware_patch(struct arizona* arizona) ...@@ -330,7 +330,7 @@ static int arizona_apply_hardware_patch(struct arizona* arizona)
return err; return err;
} }
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM
static int arizona_runtime_resume(struct device *dev) static int arizona_runtime_resume(struct device *dev)
{ {
struct arizona *arizona = dev_get_drvdata(dev); struct arizona *arizona = dev_get_drvdata(dev);
...@@ -1024,7 +1024,7 @@ int arizona_dev_init(struct arizona *arizona) ...@@ -1024,7 +1024,7 @@ int arizona_dev_init(struct arizona *arizona)
goto err_irq; goto err_irq;
} }
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM
regulator_disable(arizona->dcvdd); regulator_disable(arizona->dcvdd);
#endif #endif
......
...@@ -116,7 +116,7 @@ static const char *wm8958_main_supplies[] = { ...@@ -116,7 +116,7 @@ static const char *wm8958_main_supplies[] = {
"SPKVDD2", "SPKVDD2",
}; };
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM
static int wm8994_suspend(struct device *dev) static int wm8994_suspend(struct device *dev)
{ {
struct wm8994 *wm8994 = dev_get_drvdata(dev); struct wm8994 *wm8994 = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册