Skip to content

Commit

Permalink
USB: gpio_vbus: fix inconsistent 'dev_id' parameters at free_irq()
Browse files Browse the repository at this point in the history
'dev_id' has to be the same with the one passed to request_irq().

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Shinya Kuribayashi authored and Greg Kroah-Hartman committed May 14, 2012
1 parent 1b0159b commit 0d13eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/otg/gpio_vbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)

return 0;
err_otg:
free_irq(irq, &pdev->dev);
free_irq(irq, pdev);
err_irq:
if (gpio_is_valid(pdata->gpio_pullup))
gpio_free(pdata->gpio_pullup);
Expand All @@ -341,7 +341,7 @@ static int __exit gpio_vbus_remove(struct platform_device *pdev)

usb_set_transceiver(NULL);

free_irq(gpio_to_irq(gpio), &pdev->dev);
free_irq(gpio_to_irq(gpio), pdev);
if (gpio_is_valid(pdata->gpio_pullup))
gpio_free(pdata->gpio_pullup);
gpio_free(gpio);
Expand Down

0 comments on commit 0d13eeb

Please sign in to comment.