--
--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>
struct menelaus_chip *menelaus = i2c_get_clientdata(client);
free_irq(client->irq, menelaus);
+ kfree(menelaus);
the_menelaus = NULL;
return 0;
}
.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),
};