Messages in this thread Patch in this message | | | From | Coiby Xu <> | Subject | [PATCH 2/9] mfd: motorola-cpcap: remove unnecessary CONFIG_PM_SLEEP | Date | Thu, 29 Oct 2020 18:06:40 +0800 |
| |
SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.
Signed-off-by: Coiby Xu <coiby.xu@gmail.com> --- drivers/mfd/motorola-cpcap.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/drivers/mfd/motorola-cpcap.c b/drivers/mfd/motorola-cpcap.c index 2283d88adcc2..97c07a5641c5 100644 --- a/drivers/mfd/motorola-cpcap.c +++ b/drivers/mfd/motorola-cpcap.c @@ -214,7 +214,6 @@ static const struct regmap_config cpcap_regmap_config = { .val_format_endian = REGMAP_ENDIAN_LITTLE, }; -#ifdef CONFIG_PM_SLEEP static int cpcap_suspend(struct device *dev) { struct spi_device *spi = to_spi_device(dev); @@ -232,7 +231,6 @@ static int cpcap_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(cpcap_pm, cpcap_suspend, cpcap_resume); -- 2.28.0
| |