mmc: dw_mmc: remove unnecessary debug message
authorBeomho Seo <beomho.seo@samsung.com>
Tue, 23 Dec 2014 12:07:33 +0000 (21:07 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:20 +0000 (09:56 +0100)
This patch remove unnecessary 'out of memory' message on dw mmc driver.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-exynos.c
drivers/mmc/host/dw_mmc.c

index f936704a11823ff356313c894651cd6a58936bce..74eb081a3c5937ecf3b472f567d2a8effd26287a 100644 (file)
@@ -230,10 +230,8 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host)
        int ret;
 
        priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL);
-       if (!priv) {
-               dev_err(host->dev, "mem alloc failed for private data\n");
+       if (!priv)
                return -ENOMEM;
-       }
 
        for (idx = 0; idx < ARRAY_SIZE(exynos_compat); idx++) {
                if (of_device_is_compatible(np, exynos_compat[idx].compatible))
index a1b80e515147c73df9471ee4d77fcbff4d9915cc..6e4d864b50ef09cfb6f361a25c220a80b430f911 100644 (file)
@@ -2546,10 +2546,8 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
        u32 clock_frequency;
 
        pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
-       if (!pdata) {
-               dev_err(dev, "could not allocate memory for pdata\n");
+       if (!pdata)
                return ERR_PTR(-ENOMEM);
-       }
 
        /* find out number of slots supported */
        if (of_property_read_u32(dev->of_node, "num-slots",