diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-10-29 03:44:41 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-31 08:50:16 -0400 |
commit | 797b4e145cfaaa787d91ab692b0956f799e77b7a (patch) | |
tree | 91d863df24a8dd60f955134b1d8991b699a78071 | |
parent | 0696f92970abeb5586eb11cabd2a41909b4dee71 (diff) |
usb: renesas_usbhs: use devm_request_irq()
This patch uses devm_request_irq() instead of request_irq(),
and removed free_irq() from driver
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/renesas_usbhs/mod.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb/renesas_usbhs/mod.c index 35c5208f3249..2672487f5417 100644 --- a/drivers/usb/renesas_usbhs/mod.c +++ b/drivers/usb/renesas_usbhs/mod.c | |||
@@ -151,7 +151,7 @@ int usbhs_mod_probe(struct usbhs_priv *priv) | |||
151 | goto mod_init_host_err; | 151 | goto mod_init_host_err; |
152 | 152 | ||
153 | /* irq settings */ | 153 | /* irq settings */ |
154 | ret = request_irq(priv->irq, usbhs_interrupt, | 154 | ret = devm_request_irq(dev, priv->irq, usbhs_interrupt, |
155 | priv->irqflags, dev_name(dev), priv); | 155 | priv->irqflags, dev_name(dev), priv); |
156 | if (ret) { | 156 | if (ret) { |
157 | dev_err(dev, "irq request err\n"); | 157 | dev_err(dev, "irq request err\n"); |
@@ -172,7 +172,6 @@ void usbhs_mod_remove(struct usbhs_priv *priv) | |||
172 | { | 172 | { |
173 | usbhs_mod_host_remove(priv); | 173 | usbhs_mod_host_remove(priv); |
174 | usbhs_mod_gadget_remove(priv); | 174 | usbhs_mod_gadget_remove(priv); |
175 | free_irq(priv->irq, priv); | ||
176 | } | 175 | } |
177 | 176 | ||
178 | /* | 177 | /* |