]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: host: ohci-omap: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 17 May 2013 09:51:25 +0000 (15:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 17:14:53 +0000 (10:14 -0700)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-omap.c

index b1d32fb4a7ae60ead8bcc3db961ba0b0d9385027..8747fa6a51b7cf1c067bf7cf8264c442a0e330db 100644 (file)
@@ -498,7 +498,6 @@ static int ohci_hcd_omap_drv_remove(struct platform_device *dev)
        struct usb_hcd          *hcd = platform_get_drvdata(dev);
 
        usb_hcd_omap_remove(hcd, dev);
-       platform_set_drvdata(dev, NULL);
 
        return 0;
 }