usb: musb: factor out hcd initalization
authorDaniel Mack <zonque@gmail.com>
Wed, 10 Apr 2013 19:55:45 +0000 (21:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 16:22:23 +0000 (19:22 +0300)
commit74c2e93600581d80695604126a3725a157d0ab72
treef1cf1d021097255eaecb85219f372e012982d632
parent69ae2a70bfabbd6af6309bf723ec76493512dba1
usb: musb: factor out hcd initalization

The musb struct is currently allocated along with the hcd, which makes
it difficult to build a driver that only acts as gadget device.

Fix this by allocating musb directly, and keep the hcd around as
a pointer in the musb struct.

struct hc_driver musb_hc_driver can now also be static to musb_host.c,
and the macro musb_to_hcd() is just a pointer dereferencer for now, and
will be eliminated later.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_host.h
This page took 0.024235 seconds and 5 git commands to generate.