Skip to content

Commit

Permalink
drivers/misc/isl29020.c: remove incorrect kfree in isl29020_remove()
Browse files Browse the repository at this point in the history
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 <axel.lin@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
AxelLin authored and torvalds committed Nov 24, 2010
1 parent ea251c1 commit b38eeaa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/misc/isl29020.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 <kalhan.trisal@intel.com");
MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com>");
MODULE_DESCRIPTION("Intersil isl29020 ALS Driver");
MODULE_LICENSE("GPL v2");

0 comments on commit b38eeaa

Please sign in to comment.