USB: gpio_vbus: fix inconsistent 'dev_id' parameters at free_irq()

'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>
This commit is contained in:
Shinya Kuribayashi 2012-05-10 10:31:51 +09:00 коммит произвёл Greg Kroah-Hartman
Родитель 1b0159bab9
Коммит 0d13eebcab
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -319,7 +319,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
return 0; return 0;
err_otg: err_otg:
free_irq(irq, &pdev->dev); free_irq(irq, pdev);
err_irq: err_irq:
if (gpio_is_valid(pdata->gpio_pullup)) if (gpio_is_valid(pdata->gpio_pullup))
gpio_free(pdata->gpio_pullup); gpio_free(pdata->gpio_pullup);
@ -341,7 +341,7 @@ static int __exit gpio_vbus_remove(struct platform_device *pdev)
usb_set_transceiver(NULL); 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)) if (gpio_is_valid(pdata->gpio_pullup))
gpio_free(pdata->gpio_pullup); gpio_free(pdata->gpio_pullup);
gpio_free(gpio); gpio_free(gpio);