[PATCH 2/5] usb: musb: set controller->priv pointer

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 28 04:05:34 PDT 2015


This is used by the detect callback but never initialized.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/usb/musb/musb_barebox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/musb/musb_barebox.c b/drivers/usb/musb/musb_barebox.c
index 6bc232b..b1f38c3 100644
--- a/drivers/usb/musb/musb_barebox.c
+++ b/drivers/usb/musb/musb_barebox.c
@@ -139,6 +139,7 @@ int musb_register(struct musb *musb)
 	host->submit_control_msg = submit_control_msg;
 	host->submit_bulk_msg = submit_bulk_msg;
 
+	musb->controller->priv = musb;
 	musb->controller->detect = musb_detect;
 	usb_register_host(host);
 
-- 
2.1.4




More information about the barebox mailing list