|
@@ -455,7 +455,7 @@ static int __devinit fsa9480_probe(struct i2c_client *client,
|
|
|
|
|
|
fail2:
|
|
|
if (client->irq)
|
|
|
- free_irq(client->irq, NULL);
|
|
|
+ free_irq(client->irq, usbsw);
|
|
|
fail1:
|
|
|
i2c_set_clientdata(client, NULL);
|
|
|
kfree(usbsw);
|
|
@@ -466,7 +466,7 @@ static int __devexit fsa9480_remove(struct i2c_client *client)
|
|
|
{
|
|
|
struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client);
|
|
|
if (client->irq)
|
|
|
- free_irq(client->irq, NULL);
|
|
|
+ free_irq(client->irq, usbsw);
|
|
|
i2c_set_clientdata(client, NULL);
|
|
|
|
|
|
sysfs_remove_group(&client->dev.kobj, &fsa9480_group);
|