[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1328004002-24646-3-git-send-email-Barry.Song@csr.com>
Date: Tue, 31 Jan 2012 18:00:01 +0800
From: Barry Song <Barry.Song@....com>
To: Greg Kroah-Hartman <gregkh@...e.de>, <linux-kernel@...r.kernel.org>
CC: <workgroup.linux@....com>, <linux-mtd@...ts.infradead.org>,
Barry Song <Baohua.Song@....com>,
Grant Likely <grant.likely@...retlab.ca>,
Linus Walleij <linus.walleij@...aro.org>,
Erik Gilling <konkers@...gle.com>
Subject: [PATCH 2/3] GPIO: TEGRA: move to use platform_devm_request_and_ioremap() helper
From: Barry Song <Baohua.Song@....com>
Signed-off-by: Barry Song <Baohua.Song@....com>
Cc: Grant Likely <grant.likely@...retlab.ca>
Cc: Linus Walleij <linus.walleij@...aro.org>
Cc: Erik Gilling <konkers@...gle.com>
---
drivers/gpio/gpio-tegra.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index bdc2937..118e367 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -355,13 +355,7 @@ static int __devinit tegra_gpio_probe(struct platform_device *pdev)
bank->irq = res->start;
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(&pdev->dev, "Missing MEM resource\n");
- return -ENODEV;
- }
-
- regs = devm_request_and_ioremap(&pdev->dev, res);
+ regs = platform_devm_request_and_ioremap(pdev, 0);
if (!regs) {
dev_err(&pdev->dev, "Couldn't ioremap regs\n");
return -ENODEV;
--
1.7.1
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
--
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