From: Kuninori Morimoto Date: Mon, 29 Oct 2012 07:44:41 +0000 (-0700) Subject: usb: renesas_usbhs: use devm_request_irq() X-Git-Tag: upstream/snapshot3+hdmi~6133^2~59^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=797b4e145cfaaa787d91ab692b0956f799e77b7a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb/renesas_usbhs/mod.c index 35c5208..2672487 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) 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); } /*