]> Pileus Git - ~andy/linux/commitdiff
USB: gpio_vbus: fix inconsistent 'dev_id' parameters at free_irq()
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Thu, 10 May 2012 01:31:51 +0000 (10:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 16:01:50 +0000 (09:01 -0700)
'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>
drivers/usb/otg/gpio_vbus.c

index a0a2178974fe149f99da263627d8ada256faace5..5a13657ef0776ea6f8b549590e535147b1e83eba 100644 (file)
@@ -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);
@@ -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);