diff options
author | Jason Liu <r64343@freescale.com> | 2010-09-08 13:45:05 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2010-09-09 11:16:12 +0800 |
commit | 647141b8883a63eada32c26a5d8bf17a2d7fde70 (patch) | |
tree | cea91a3a8a15d337a73a01f74a5f5a69856212bb /drivers | |
parent | 9d259a01d7998150a87cc03d1460428b36fbde31 (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')
-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)); |