From: fabio.estevam@freescale.com (Fabio Estevam)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] mmc: sdhci-esdhc-imx: Remove unneeded '#ifdef CONFIG_OF'
Date: Fri, 15 Jun 2012 14:23:05 -0300 [thread overview]
Message-ID: <1339780987-11063-2-git-send-email-fabio.estevam@freescale.com> (raw)
In-Reply-To: <1339780987-11063-1-git-send-email-fabio.estevam@freescale.com>
CONFIG_OF is always selected for imx SoCs so it is safe
to drop the '#ifdef CONFIG_OF'.
Cc: Chris Ball <cjb@laptop.org>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Fabio Estevam <fabio.estevam@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
next prev parent reply other threads:[~2012-06-15 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 17:23 [PATCH 1/4] serial: imx: Remove unneeded '#ifdef CONFIG_OF' Fabio Estevam
2012-06-15 17:23 ` Fabio Estevam [this message]
2012-06-15 17:23 ` [PATCH 3/4] ARM: clk-imx27: " Fabio Estevam
2012-06-15 17:23 ` [PATCH 4/4] ARM: clk-imx51-imx53: " Fabio Estevam
2012-06-15 18:33 ` [PATCH 1/4] serial: imx: " Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1339780987-11063-2-git-send-email-fabio.estevam@freescale.com \
--to=fabio.estevam@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).