Commit b3759d34 authored by Trilok Soni's avatar Trilok Soni Committed by Tony Lindgren

ARM: OMAP: Remove .id and .class in menelaus I2C driver

--
--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: default avatarTrilok Soni <soni.trilok@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent abd1b2d9
......@@ -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),
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment