[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090130013628.4672215d.akpm@linux-foundation.org>
Date: Fri, 30 Jan 2009 01:36:28 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@...el.com>,
linux-kernel@...r.kernel.org, dbrownell@...rs.sourceforge.net,
kay.sievers@...y.org, weiyi.huang@...il.com,
Andrew Victor <avictor.za@...il.com>
Subject: Re: [PATCH 1/1] atmel-ssc: fix misuse of dev_dbg when requested ssc
instance is not found
On Fri, 30 Jan 2009 10:26:54 +0100 Haavard Skinnemoen <haavard.skinnemoen@...el.com> wrote:
> [CCs added]
>
> Hans-Christian Egtvedt wrote:
> > This patch replaces the dev_dbg(...) with a pr_err since the ssc pointer
> > is not valid when the id is not found in the list.
> >
> > Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@...el.com>
>
> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
>
> ...or should I just apply it to the avr32 tree?
>
Is OK, I tossed into onto my 2.6.29 pile.
Should it be backported to 2.6.28.x or earlier?
>
> > ---
> > drivers/misc/atmel-ssc.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
> > index 6b35874..6cff1bb 100644
> > --- a/drivers/misc/atmel-ssc.c
> > +++ b/drivers/misc/atmel-ssc.c
> > @@ -35,7 +35,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
> >
> > if (!ssc_valid) {
> > spin_unlock(&user_lock);
> > - dev_dbg(&ssc->pdev->dev, "could not find requested device\n");
> > + pr_err("ssc: ssc%d platform device is missing\n", ssc_num);
> > return ERR_PTR(-ENODEV);
> > }
> >
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists