Lines Matching refs:driver
65 struct greybus_driver *driver = to_greybus_driver(drv); in greybus_match_device() local
74 id = greybus_match_id(bundle, driver->id_table); in greybus_match_device()
167 struct greybus_driver *driver = to_greybus_driver(dev->driver); in greybus_probe() local
173 id = greybus_match_id(bundle, driver->id_table); in greybus_probe()
202 retval = driver->probe(bundle, id); in greybus_probe()
227 struct greybus_driver *driver = to_greybus_driver(dev->driver); in greybus_remove() local
251 driver->disconnect(bundle); in greybus_remove()
268 int greybus_register_driver(struct greybus_driver *driver, struct module *owner, in greybus_register_driver() argument
276 driver->driver.bus = &greybus_bus_type; in greybus_register_driver()
277 driver->driver.name = driver->name; in greybus_register_driver()
278 driver->driver.probe = greybus_probe; in greybus_register_driver()
279 driver->driver.remove = greybus_remove; in greybus_register_driver()
280 driver->driver.owner = owner; in greybus_register_driver()
281 driver->driver.mod_name = mod_name; in greybus_register_driver()
283 retval = driver_register(&driver->driver); in greybus_register_driver()
287 pr_info("registered new driver %s\n", driver->name); in greybus_register_driver()
292 void greybus_deregister_driver(struct greybus_driver *driver) in greybus_deregister_driver() argument
294 driver_unregister(&driver->driver); in greybus_deregister_driver()