* [PATCH] mmc: dw_mmc: remove unnecessary debug message
@ 2014-12-23 12:07 Beomho Seo
2014-12-23 12:51 ` Jaehoon Chung
2014-12-23 15:35 ` Ulf Hansson
0 siblings, 2 replies; 3+ messages in thread
From: Beomho Seo @ 2014-12-23 12:07 UTC (permalink / raw)
To: linux-mmc; +Cc: Beomho Seo
This patch remove unnecessary 'out of memory' message on dw mmc driver.
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
---
drivers/mmc/host/dw_mmc-exynos.c | 4 +---
drivers/mmc/host/dw_mmc.c | 4 +---
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 f936704..74eb081 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)
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))
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index a1b80e5..6e4d864 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)
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",
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: dw_mmc: remove unnecessary debug message
2014-12-23 12:07 [PATCH] mmc: dw_mmc: remove unnecessary debug message Beomho Seo
@ 2014-12-23 12:51 ` Jaehoon Chung
2014-12-23 15:35 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Jaehoon Chung @ 2014-12-23 12:51 UTC (permalink / raw)
To: Beomho Seo, linux-mmc; +Cc: Ulf Hansson, 'Chris Ball'
Plz CC'd the mmc maintainers and dw-mmc maintainers.
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
On 12/23/2014 09:07 PM, Beomho Seo wrote:
> This patch remove unnecessary 'out of memory' message on dw mmc driver.
>
> Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
> ---
> drivers/mmc/host/dw_mmc-exynos.c | 4 +---
> drivers/mmc/host/dw_mmc.c | 4 +---
> 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 f936704..74eb081 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)
> 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))
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index a1b80e5..6e4d864 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)
> 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",
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: dw_mmc: remove unnecessary debug message
2014-12-23 12:07 [PATCH] mmc: dw_mmc: remove unnecessary debug message Beomho Seo
2014-12-23 12:51 ` Jaehoon Chung
@ 2014-12-23 15:35 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2014-12-23 15:35 UTC (permalink / raw)
To: Beomho Seo; +Cc: linux-mmc
On 23 December 2014 at 13:07, Beomho Seo <beomho.seo@samsung.com> wrote:
> This patch remove unnecessary 'out of memory' message on dw mmc driver.
>
> Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Thanks! Applied for next.
Kind regards
Uffe
> ---
> drivers/mmc/host/dw_mmc-exynos.c | 4 +---
> drivers/mmc/host/dw_mmc.c | 4 +---
> 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 f936704..74eb081 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)
> 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))
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index a1b80e5..6e4d864 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)
> 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",
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-23 15:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-23 12:07 [PATCH] mmc: dw_mmc: remove unnecessary debug message Beomho Seo
2014-12-23 12:51 ` Jaehoon Chung
2014-12-23 15:35 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox