Home
last modified time | relevance | path

Searched refs:new_driver (Results 1 – 2 of 2) sorted by relevance

/drivers/usb/core/
Ddriver.c837 int usb_register_driver(struct usb_driver *new_driver, struct module *owner, in usb_register_driver() argument
845 new_driver->drvwrap.for_devices = 0; in usb_register_driver()
846 new_driver->drvwrap.driver.name = (char *) new_driver->name; in usb_register_driver()
847 new_driver->drvwrap.driver.bus = &usb_bus_type; in usb_register_driver()
848 new_driver->drvwrap.driver.probe = usb_probe_interface; in usb_register_driver()
849 new_driver->drvwrap.driver.remove = usb_unbind_interface; in usb_register_driver()
850 new_driver->drvwrap.driver.owner = owner; in usb_register_driver()
851 new_driver->drvwrap.driver.mod_name = mod_name; in usb_register_driver()
852 spin_lock_init(&new_driver->dynids.lock); in usb_register_driver()
853 INIT_LIST_HEAD(&new_driver->dynids.list); in usb_register_driver()
[all …]
/drivers/net/phy/
Dphy_device.c967 int phy_driver_register(struct phy_driver *new_driver) in phy_driver_register() argument
971 new_driver->driver.name = new_driver->name; in phy_driver_register()
972 new_driver->driver.bus = &mdio_bus_type; in phy_driver_register()
973 new_driver->driver.probe = phy_probe; in phy_driver_register()
974 new_driver->driver.remove = phy_remove; in phy_driver_register()
976 retval = driver_register(&new_driver->driver); in phy_driver_register()
980 new_driver->name, retval); in phy_driver_register()
985 pr_debug("%s: Registered new driver\n", new_driver->name); in phy_driver_register()