Skip to content

Commit

Permalink
usb: gadget: mv_u3d_core: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Commit 0998d06 (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: Yu Xu <yuxu@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Sachin Kamat authored and Felipe Balbi committed May 28, 2013
1 parent 1b635f0 commit 2d2428c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/gadget/mv_u3d_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1997,7 +1995,6 @@ static int mv_u3d_probe(struct platform_device *dev)
err_get_cap_regs:
err_get_clk:
clk_put(u3d->clk);
platform_set_drvdata(dev, NULL);
kfree(u3d);
err_alloc_private:
err_pdata:
Expand Down

0 comments on commit 2d2428c

Please sign in to comment.