Lines Matching refs:dev
1294 struct device *dev; member
1814 static void musb_gadget_release(struct device *dev) in musb_gadget_release() argument
1817 dev_dbg(dev, "%s\n", __func__); in musb_gadget_release()
1909 dev_set_name(&musb->g.dev, "gadget"); in musb_gadget_setup()
1910 musb->g.dev.parent = musb->controller; in musb_gadget_setup()
1911 musb->g.dev.dma_mask = musb->controller->dma_mask; in musb_gadget_setup()
1912 musb->g.dev.release = musb_gadget_release; in musb_gadget_setup()
1927 status = device_register(&musb->g.dev); in musb_gadget_setup()
1929 put_device(&musb->g.dev); in musb_gadget_setup()
1940 musb->g.dev.parent = NULL; in musb_gadget_setup()
1941 device_unregister(&musb->g.dev); in musb_gadget_setup()
1950 if (musb->g.dev.parent) in musb_gadget_cleanup()
1951 device_unregister(&musb->g.dev); in musb_gadget_cleanup()