From: Sachin Kamat Date: Mon, 6 May 2013 11:37:19 +0000 (+0530) Subject: usb: gadget: atmel_usba_udc: Remove redundant platform_set_drvdata() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fb00d6931ab9154cb4d66891909e54907be0798f;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: atmel_usba_udc: Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Acked-by: Nicolas Ferre Signed-off-by: Sachin Kamat Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index f2a970f75bfa..5a5128a226f7 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -1992,8 +1992,6 @@ err_map_regs: err_get_hclk: clk_put(pclk); - platform_set_drvdata(pdev, NULL); - return ret; }