usb: renesas_usbhs: use devm_request_irq()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 29 Oct 2012 07:44:41 +0000 (00:44 -0700)
committerFelipe Balbi <balbi@ti.com>
Wed, 31 Oct 2012 12:50:16 +0000 (14:50 +0200)
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>
drivers/usb/renesas_usbhs/mod.c

index 35c5208f32494d7c55f4fd98fa79cf517425ca46..2672487f5417562abc3232c49aa5513c739e7a19 100644 (file)
@@ -151,7 +151,7 @@ int usbhs_mod_probe(struct usbhs_priv *priv)
                goto mod_init_host_err;
 
        /* irq settings */
-       ret = request_irq(priv->irq, usbhs_interrupt,
+       ret = devm_request_irq(dev, priv->irq, usbhs_interrupt,
                          priv->irqflags, dev_name(dev), priv);
        if (ret) {
                dev_err(dev, "irq request err\n");
@@ -172,7 +172,6 @@ void usbhs_mod_remove(struct usbhs_priv *priv)
 {
        usbhs_mod_host_remove(priv);
        usbhs_mod_gadget_remove(priv);
-       free_irq(priv->irq, priv);
 }
 
 /*