[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOh2x==ECCN-2wEkFuNQ6DN2K6LMe3kvYMXXpk1bzQvUVo19Wg@mail.gmail.com>
Date: Mon, 21 Jan 2013 16:15:35 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Thierry Reding <thierry.reding@...onic-design.de>
Cc: linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Arnd Bergmann <arnd@...db.de>,
Wolfram Sang <w.sang@...gutronix.de>,
linux-input@...r.kernel.org
Subject: Re: [PATCH 12/33] Input: Convert to devm_ioremap_resource()
On Mon, Jan 21, 2013 at 3:39 PM, Thierry Reding
<thierry.reding@...onic-design.de> wrote:
> diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c
> @@ -228,11 +228,9 @@ static int spear_kbd_probe(struct platform_device *pdev)
> kbd->suspended_rate = pdata->suspended_rate;
> }
>
> - kbd->io_base = devm_request_and_ioremap(&pdev->dev, res);
> - if (!kbd->io_base) {
> - dev_err(&pdev->dev, "request-ioremap failed for kbd_region\n");
I would like to keep this error message as is.
> - return -ENOMEM;
> - }
> + kbd->io_base = devm_ioremap_resource(&pdev->dev, res);
> + if (IS_ERR(kbd->io_base))
> + return PTR_ERR(kbd->io_base);
apart from that, for SPEAr
Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
--
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