Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: pxa27x_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.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Sachin Kamat and committed by
Felipe Balbi
e823aa7c 2d2428c0

-1
-1
drivers/usb/gadget/pxa27x_udc.c
··· 2505 2505 usb_put_phy(udc->transceiver); 2506 2506 2507 2507 udc->transceiver = NULL; 2508 - platform_set_drvdata(_dev, NULL); 2509 2508 the_controller = NULL; 2510 2509 clk_put(udc->clk); 2511 2510 iounmap(udc->regs);