Lines Matching refs:driver_name
14 char *driver_name; in make_driver_name() local
16 driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); in make_driver_name()
17 if (!driver_name) in make_driver_name()
20 return driver_name; in make_driver_name()
35 char *driver_name; in module_add_driver() local
65 driver_name = make_driver_name(drv); in module_add_driver()
66 if (!driver_name) { in module_add_driver()
77 ret = sysfs_create_link(mk->drivers_dir, &drv->p->kobj, driver_name); in module_add_driver()
81 kfree(driver_name); in module_add_driver()
86 sysfs_remove_link(mk->drivers_dir, driver_name); in module_add_driver()
89 kfree(driver_name); in module_add_driver()
99 char *driver_name; in module_remove_driver() local
111 driver_name = make_driver_name(drv); in module_remove_driver()
112 if (driver_name) { in module_remove_driver()
113 sysfs_remove_link(mk->drivers_dir, driver_name); in module_remove_driver()
114 kfree(driver_name); in module_remove_driver()