I2C: remove i2c_driver's .owner and .name
PATCH 7/9 I2C: remove i2c_driver's .owner and .name
We should use the i2c_driver.driver's .name and .owner fields instead of the i2c_drivers's ones.
This patch updates the drivers for ppc arch.
Signed-off-by Laurent Riffard <[email protected]>
--
sound/ppc/keywest.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
Index: linux-2.6-mm/sound/ppc/keywest.c =================================--- linux-2.6-mm.orig/sound/ppc/keywest.c +++ linux-2.6-mm/sound/ppc/keywest.c
@@ -41,7 +41,10 @@
static int keywest_detach_client(struct i2c_client *client);
struct i2c_driver keywest_driver = {
- .name = "PMac Keywest Audio",
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "PMac Keywest Audio",
+ },
.id = I2C_DRIVERID_KEYWEST,
.flags = I2C_DF_NOTIFY, .attach_adapter = &keywest_attach_adapter,
--