aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-12-23 07:07:33 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2015-01-19 03:56:20 -0500
commitbf3707eae666c1f9de23d258e51a8d4b91f29e43 (patch)
treebaa5517537ff3c4239750cc2a7974618ef49fd95 /drivers/mmc
parent56d1c0d941282c8baf3e1d772ba0e254651cdaca (diff)
mmc: dw_mmc: remove unnecessary debug message
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/dw_mmc-exynos.c4
-rw-r--r--drivers/mmc/host/dw_mmc.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index f936704a1182..74eb081a3c59 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -230,10 +230,8 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host)
230 int ret; 230 int ret;
231 231
232 priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL); 232 priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL);
233 if (!priv) { 233 if (!priv)
234 dev_err(host->dev, "mem alloc failed for private data\n");
235 return -ENOMEM; 234 return -ENOMEM;
236 }
237 235
238 for (idx = 0; idx < ARRAY_SIZE(exynos_compat); idx++) { 236 for (idx = 0; idx < ARRAY_SIZE(exynos_compat); idx++) {
239 if (of_device_is_compatible(np, exynos_compat[idx].compatible)) 237 if (of_device_is_compatible(np, exynos_compat[idx].compatible))
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index a1b80e515147..6e4d864b50ef 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2546,10 +2546,8 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
2546 u32 clock_frequency; 2546 u32 clock_frequency;
2547 2547
2548 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); 2548 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
2549 if (!pdata) { 2549 if (!pdata)
2550 dev_err(dev, "could not allocate memory for pdata\n");
2551 return ERR_PTR(-ENOMEM); 2550 return ERR_PTR(-ENOMEM);
2552 }
2553 2551
2554 /* find out number of slots supported */ 2552 /* find out number of slots supported */
2555 if (of_property_read_u32(dev->of_node, "num-slots", 2553 if (of_property_read_u32(dev->of_node, "num-slots",