mmc: sdhci-st: Remove unnecessary error log
authorLaibin Qiu <qiulaibin@huawei.com>
Fri, 9 Apr 2021 02:38:01 +0000 (10:38 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Apr 2021 11:52:48 +0000 (13:52 +0200)
devm_ioremap_resource() has recorded error log, so it's
unnecessary to record log again.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Laibin Qiu <qiulaibin@huawei.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20210409023801.3326572-1-qiulaibin@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-st.c

index 78941ac..d41582c 100644 (file)
@@ -400,10 +400,8 @@ static int sdhci_st_probe(struct platform_device *pdev)
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
                                           "top-mmc-delay");
        pdata->top_ioaddr = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(pdata->top_ioaddr)) {
-               dev_warn(&pdev->dev, "FlashSS Top Dly registers not available");
+       if (IS_ERR(pdata->top_ioaddr))
                pdata->top_ioaddr = NULL;
-       }
 
        pltfm_host->clk = clk;
        pdata->icnclk = icnclk;