]> 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)
commit7235abef0a1da6eed5613e7b3260fa3b182cad64
treef7f48e981a398c43103110ca688d484810d11ba1
parent88285adf213fb735b4eb0f6da67b3695631f5349
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