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)
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>

No differences found