From b3759d34cfb47825088a2e0a6d9f31e1b563a0da Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Fri, 15 Jun 2007 11:33:50 +0530 Subject: [PATCH] ARM: OMAP: Remove .id and .class in menelaus I2C driver -- --Trilok Soni From ed85f52b76af866d5efb331d6964ba50b8a842b5 Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Fri, 15 Jun 2007 17:01:53 +0530 Subject: [PATCH] ARM: OMAP: Remove .id and .class in menelaus I2C driver - .id and .class members are not required now. - Really kfree the menelaus_chip. Signed-off-by: Trilok Soni Signed-off-by: Tony Lindgren --- drivers/i2c/chips/menelaus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c index eaa4e1caba0..484a23e95d0 100644 --- a/drivers/i2c/chips/menelaus.c +++ b/drivers/i2c/chips/menelaus.c @@ -1239,6 +1239,7 @@ static int __exit menelaus_remove(struct i2c_client *client) struct menelaus_chip *menelaus = i2c_get_clientdata(client); free_irq(client->irq, menelaus); + kfree(menelaus); the_menelaus = NULL; return 0; } @@ -1247,8 +1248,6 @@ static struct i2c_driver menelaus_i2c_driver = { .driver = { .name = DRIVER_NAME, }, - .id = I2C_DRIVERID_MISC, /*FIXME:accroding to i2c-ids.h */ - .class = I2C_CLASS_HWMON, .probe = menelaus_probe, .remove = __exit_p(menelaus_remove), }; -- 2.41.1