From: Sachin Kamat Date: Fri, 17 May 2013 09:51:19 +0000 (+0530) Subject: usb: gadget: mv_u3d_core: Remove redundant platform_set_drvdata() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2d2428c027c6b2a815f4a90aa6883c02088e1e5e;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: mv_u3d_core: 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. Signed-off-by: Sachin Kamat Cc: Yu Xu Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c index 58288e9cf728..751b17af68f0 100644 --- a/drivers/usb/gadget/mv_u3d_core.c +++ b/drivers/usb/gadget/mv_u3d_core.c @@ -1786,8 +1786,6 @@ static int mv_u3d_remove(struct platform_device *dev) clk_put(u3d->clk); - platform_set_drvdata(dev, NULL); - kfree(u3d); return 0; @@ -1997,7 +1995,6 @@ err_map_cap_regs: err_get_cap_regs: err_get_clk: clk_put(u3d->clk); - platform_set_drvdata(dev, NULL); kfree(u3d); err_alloc_private: err_pdata: