[PATCH 2/4] mmc: sdhci-esdhc-imx: Remove unneeded '#ifdef CONFIG_OF'

Fabio Estevam fabio.estevam at freescale.com
Fri Jun 15 13:23:05 EDT 2012


CONFIG_OF is always selected for imx SoCs so it is safe
to drop the '#ifdef CONFIG_OF'.

Cc: Chris Ball <cjb at laptop.org>
Cc: <linux-mmc at vger.kernel.org>
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 drivers/mmc/host/sdhci-esdhc-imx.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index ebbe984..1b0c999 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -397,7 +397,6 @@ static irqreturn_t cd_irq(int irq, void *data)
 	return IRQ_HANDLED;
 };
 
-#ifdef CONFIG_OF
 static int __devinit
 sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
 			 struct esdhc_platform_data *boarddata)
@@ -426,14 +425,6 @@ sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
 
 	return 0;
 }
-#else
-static inline int
-sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
-			 struct esdhc_platform_data *boarddata)
-{
-	return -ENODEV;
-}
-#endif
 
 static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev)
 {
-- 
1.7.1





More information about the linux-arm-kernel mailing list