From: Peter Griffin Date: Tue, 12 Aug 2014 16:14:28 +0000 (+0100) Subject: mmc: sdhci-pci: Use SET_RUNTIME_PM_OPS macro to set runtime pm callbacks X-Git-Tag: v5.15~17093^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3a92b1a3258f8ef9a59bab24b9ea68b60908c44;p=platform%2Fkernel%2Flinux-starfive.git mmc: sdhci-pci: Use SET_RUNTIME_PM_OPS macro to set runtime pm callbacks This allows us to get rid of the #else condition, as the macro compiles away to nothing if not enabled. Signed-off-by: Peter Griffin Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index c3a1deb..310ecbc 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c @@ -1269,20 +1269,13 @@ static int sdhci_pci_runtime_idle(struct device *dev) return 0; } -#else - -#define sdhci_pci_runtime_suspend NULL -#define sdhci_pci_runtime_resume NULL -#define sdhci_pci_runtime_idle NULL - #endif static const struct dev_pm_ops sdhci_pci_pm_ops = { .suspend = sdhci_pci_suspend, .resume = sdhci_pci_resume, - .runtime_suspend = sdhci_pci_runtime_suspend, - .runtime_resume = sdhci_pci_runtime_resume, - .runtime_idle = sdhci_pci_runtime_idle, + SET_RUNTIME_PM_OPS(sdhci_pci_runtime_suspend, + sdhci_pci_runtime_resume, sdhci_pci_runtime_idle) }; /*****************************************************************************\