diff options
author | Jason Liu <r64343@freescale.com> | 2010-09-08 13:45:05 +0800 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2011-01-19 11:49:09 -0500 |
commit | 5472a2c83a98d5918f616c5485f6acaaa2014a65 (patch) | |
tree | cea91a3a8a15d337a73a01f74a5f5a69856212bb /drivers/mmc | |
parent | 86e1d1147176f36d2a0f8dfef2cbd6b25056cc68 (diff) |
ENGR00127265-6 sdhc: Correct error check for clk get failed
Need adjust the check conditon to IS_ERR(p) when using clkdev
by 2.6.35 kernel.
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mx_sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mx_sdhci.c b/drivers/mmc/host/mx_sdhci.c index b5e4f1895fc7..d92463d00de9 100644 --- a/drivers/mmc/host/mx_sdhci.c +++ b/drivers/mmc/host/mx_sdhci.c @@ -1876,7 +1876,7 @@ static int __devinit sdhci_probe_slot(struct platform_device /* Get the SDHC clock from clock system APIs */ host->clk = clk_get(&pdev->dev, mmc_plat->clock_mmc); - if (NULL == host->clk) + if (IS_ERR(host->clk)) printk(KERN_ERR "MXC MMC can't get clock.\n"); DBG("SDHC:%d clock:%lu\n", pdev->id, clk_get_rate(host->clk)); |