projects/linux·commit b38eeaae

drivers/misc/isl29020.c: remove incorrect kfree in isl29020_remove()

b38eeaae · Axel Lin <[email protected]> · 2010-11-24 12:57:14 -08:00

struct als_data *data is not used in this driver at all.

Also add a missing ">" character for MODULE_AUTHOR.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
b38eeaae267e4cd385ababcc2df82f6c46fc8633
Parents
ea251c1d

Changes

1 files changed · +1 −3

FileStatusAddDelContent
drivers/misc/isl29020.cmodified+1−3View file

drivers/misc/isl29020.c

View file
diff --git a/drivers/misc/isl29020.c b/drivers/misc/isl29020.c
index ca47e62..307aada 100644
--- a/drivers/misc/isl29020.c
+++ b/drivers/misc/isl29020.c
@@ -183,9 +183,7 @@ static int isl29020_probe(struct i2c_client *client,
static int isl29020_remove(struct i2c_client *client)
{
- struct als_data *data = i2c_get_clientdata(client);
sysfs_remove_group(&client->dev.kobj, &m_als_gr);
- kfree(data);
return 0;
}
@@ -245,6 +243,6 @@ static void __exit sensor_isl29020_exit(void)
module_init(sensor_isl29020_init);
module_exit(sensor_isl29020_exit);
-MODULE_AUTHOR("Kalhan Trisal <[email protected]");
+MODULE_AUTHOR("Kalhan Trisal <[email protected]>");
MODULE_DESCRIPTION("Intersil isl29020 ALS Driver");
MODULE_LICENSE("GPL v2");