]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: fix incorrect usage of resource pointer
authorFelipe Balbi <balbi@ti.com>
Wed, 24 Apr 2013 14:21:42 +0000 (17:21 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 16:00:49 +0000 (19:00 +0300)
commit2b82bdcef08abe60a86b32f599de7027c37af349
treef7f48e981a398c43103110ca688d484810d11ba1
parentd67f0f7f01eb8b278d2ffe137361076878c8bb76
usb: musb: fix incorrect usage of resource pointer

We can't simply pass the resource pointer from our
device down to our children, otherwise module
reinsertion will not work as the resource will
continue to be marked as busy.

Fix it by building a proper struct resource for
our child musb device.

Tested-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/blackfin.c
drivers/usb/musb/da8xx.c
drivers/usb/musb/davinci.c
drivers/usb/musb/omap2430.c
drivers/usb/musb/tusb6010.c
drivers/usb/musb/ux500.c