From: Trilok Soni Date: Fri, 15 Jun 2007 06:03:50 +0000 (+0530) Subject: ARM: OMAP: Remove .id and .class in menelaus I2C driver X-Git-Tag: v2.6.22-omap1~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b3759d34cfb47825088a2e0a6d9f31e1b563a0da;p=linux-2.6-omap-h63xx.git 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 --- 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), };