| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH V2 2/6] MIPS: lantiq: use devm_request_gpio inside xway gpio driver |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Thu, 23 Feb 2012 17:01:49 +0100 |
| Cc: | linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1330012913-13293-1-git-send-email-blogic@openwrt.org> |
| References: | <1330012913-13293-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Start using the devm_request_gpio() api inside our xway gpio_request wrapper.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
arch/mips/lantiq/xway/gpio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/lantiq/xway/gpio.c b/arch/mips/lantiq/xway/gpio.c
index 14ff7c7..54ec6c9 100644
--- a/arch/mips/lantiq/xway/gpio.c
+++ b/arch/mips/lantiq/xway/gpio.c
@@ -50,14 +50,14 @@ int irq_to_gpio(unsigned int gpio)
}
EXPORT_SYMBOL(irq_to_gpio);
-int ltq_gpio_request(unsigned int pin, unsigned int mux,
+int ltq_gpio_request(struct device *dev, unsigned int pin, unsigned int mux,
unsigned int dir, const char *name)
{
int id = 0;
if (pin >= (MAX_PORTS * PINS_PER_PORT))
return -EINVAL;
- if (gpio_request(pin, name)) {
+ if (devm_gpio_request(dev, pin, name)) {
pr_err("failed to setup lantiq gpio: %s\n", name);
return -EBUSY;
}
--
1.7.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] [trivial] mips: Fix typo in arc/mips, Masanari Iida |
|---|---|
| Next by Date: | [PATCH V2 3/6] MIPS: lantiq: use devm_request_gpio inside falcon gpio driver, John Crispin |
| Previous by Thread: | [PATCH V2 1/6] MIPS: lantiq: remove redunant ltq_gpio_request() declaration and add device parameter, John Crispin |
| Next by Thread: | [PATCH V2 3/6] MIPS: lantiq: use devm_request_gpio inside falcon gpio driver, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |