Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-sirf: Remove non needed #ifdef CONFIG_PM* for dev_pm_ops

The SIMPLE_DEV_PM_OPS macro deals with the CONFIG_PM options when
assigning the PM callbacks, thus it's not needed to control this when
using the macro. By removing the non needed #ifdef, the code becomes a
bit cleaner.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

+1 -3
+1 -3
drivers/mmc/host/sdhci-sirf.c
··· 260 260 261 261 return sdhci_resume_host(host); 262 262 } 263 + #endif 263 264 264 265 static SIMPLE_DEV_PM_OPS(sdhci_sirf_pm_ops, sdhci_sirf_suspend, sdhci_sirf_resume); 265 - #endif 266 266 267 267 static const struct of_device_id sdhci_sirf_of_match[] = { 268 268 { .compatible = "sirf,prima2-sdhc" }, ··· 274 274 .driver = { 275 275 .name = "sdhci-sirf", 276 276 .of_match_table = sdhci_sirf_of_match, 277 - #ifdef CONFIG_PM_SLEEP 278 277 .pm = &sdhci_sirf_pm_ops, 279 - #endif 280 278 }, 281 279 .probe = sdhci_sirf_probe, 282 280 .remove = sdhci_pltfm_unregister,