]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: musb_am335x: make module unload/reload work
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 17 Jul 2014 09:58:55 +0000 (11:58 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 27 Aug 2014 08:44:14 +0000 (10:44 +0200)
commit8d19aa88242c0a76b8f78a8044b9be2f4a486585
tree52b30192e2e1f0e6089e5adf1a8837063397280e
parent71e3b214f6ae7a04ebb45c16188c1f3e81b1d79a
usb: musb_am335x: make module unload/reload work

Currently unloading and reloading the usb-am335x module will render
the USB driver non-functional. This is because of_platform_populate()
does nothing upon reload because the OF_POPULATED flag will still be
set on the device nodes from the first module load.

Clearing this flag when unregistering the devices makes this driver
functional also upon repeated unload/load sequences.

Conflicts:
drivers/usb/musb/musb_am335x.c
drivers/usb/musb/musb_am335x.c