[PATCH] Owner field additions to many i2c drivers, 5 of 5
In function i2c_isa_add_driver, copied driver should inherit the owner field as well as the name field. Signed-off-by: Laurent Riffard <laurent.riffard@free.fr> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6586bcd7b2
commit
1747ef1b8c
|
@ -92,6 +92,7 @@ int i2c_isa_add_driver(struct i2c_driver *driver)
|
|||
|
||||
/* Add the driver to the list of i2c drivers in the driver core */
|
||||
driver->driver.name = driver->name;
|
||||
driver->driver.owner = driver->owner;
|
||||
driver->driver.bus = &i2c_bus_type;
|
||||
driver->driver.probe = i2c_isa_device_probe;
|
||||
driver->driver.remove = i2c_isa_device_remove;
|
||||
|
|
Loading…
Reference in New Issue