]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Remove .id and .class in menelaus I2C driver
authorTrilok Soni <soni.trilok@gmail.com>
Fri, 15 Jun 2007 06:03:50 +0000 (11:33 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Jun 2007 12:05:04 +0000 (05:05 -0700)
--
--Trilok Soni

From ed85f52b76af866d5efb331d6964ba50b8a842b5 Mon Sep 17 00:00:00 2001
From: Trilok Soni <soni.trilok@gmail.com>
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 <soni.trilok@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/menelaus.c

index eaa4e1caba0a82b119f58aa259a7440c055115b9..484a23e95d0c7f3f44acf1fa000aea0813756ae6 100644 (file)
@@ -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),
 };