diff options
author | Felipe Balbi <balbi@ti.com> | 2014-10-17 18:18:29 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 17:01:08 +0100 |
commit | 96a5361aab7a89cf80cb4fe03966f55f00b0d91f (patch) | |
tree | 183bb99269292ca0d4c99f7f6e03eb9a11a4ebf5 /drivers/usb/gadget | |
parent | usb: gadget: udc: at91: do not rely on 'driver' argument (diff) | |
download | linux-96a5361aab7a89cf80cb4fe03966f55f00b0d91f.tar.xz linux-96a5361aab7a89cf80cb4fe03966f55f00b0d91f.zip |
usb: gadget: udc: dummy: do not rely on 'driver' argument
future patches will remove the extra 'driver'
argument to ->udc_stop(), in order to do that,
we must make sure that our UDC does not rely
on it first.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/dummy_hcd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 81dc5959e36b..32bdd788c05a 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -921,9 +921,8 @@ static int dummy_udc_stop(struct usb_gadget *g, struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(g); struct dummy *dum = dum_hcd->dum; - if (driver) - dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n", - driver->driver.name); + dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n", + dum->driver->driver.name); dum->driver = NULL; |