提交 ef77d83f 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

misc: fsa9480: Remove obsolete cleanup for clientdata

A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 838d51bf
...@@ -458,7 +458,6 @@ static int __devinit fsa9480_probe(struct i2c_client *client, ...@@ -458,7 +458,6 @@ static int __devinit fsa9480_probe(struct i2c_client *client,
if (client->irq) if (client->irq)
free_irq(client->irq, usbsw); free_irq(client->irq, usbsw);
fail1: fail1:
i2c_set_clientdata(client, NULL);
kfree(usbsw); kfree(usbsw);
return ret; return ret;
} }
...@@ -468,7 +467,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client) ...@@ -468,7 +467,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client)
struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client);
if (client->irq) if (client->irq)
free_irq(client->irq, usbsw); free_irq(client->irq, usbsw);
i2c_set_clientdata(client, NULL);
sysfs_remove_group(&client->dev.kobj, &fsa9480_group); sysfs_remove_group(&client->dev.kobj, &fsa9480_group);
device_init_wakeup(&client->dev, 0); device_init_wakeup(&client->dev, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册