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)
commit09fc7d22b024692b2fe8a943b246de1af307132b
treef7f48e981a398c43103110ca688d484810d11ba1
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
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