summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2013-09-12 18:18:48 +0400
committerFelipe Balbi <balbi@ti.com>2013-09-17 20:08:45 +0400
commitc8c10253d8706be7ce8bc8197e385cb837eed5a0 (patch)
tree589ef107d975f930b8e5afabfbab2da03ae02df8 /drivers/usb/dwc3
parent7f2ccc8cb28cb3ec2f114486a3ccd57deae1560f (diff)
downloadlinux-c8c10253d8706be7ce8bc8197e385cb837eed5a0.tar.xz
usb: s3c-hsotg: fix unregistration function
After driver conversion to udc_start/udc_stop infrastructure (commit "usb:hsotg:samsung: Use new udc_start and udc_stop callbacks" f65f0f1098) the gadget unregistration function is almost always called with 'driver' parameter being NULL, what caused that the unregistration code has not been executed at all. This is a leftover from the earlier verison of this function (which used simple start/stop interface), where driver parameter was obligatory. This patch removes the NULL check for the 'driver' pointer and removes all dereferences of it. It also moves disabling voltage regulators out of the atomic context, because handling regulators (which are usually i2c devices) might require sleeping. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions