Message ID | 1269094385-16114-12-git-send-email-w.sang@pengutronix.de (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/drivers/media/radio/si470x/radio-si470x-i2c.c b/drivers/media/radio/si470x/radio-si470x-i2c.c index 5466015..2dabfac 100644 --- a/drivers/media/radio/si470x/radio-si470x-i2c.c +++ b/drivers/media/radio/si470x/radio-si470x-i2c.c @@ -480,8 +480,8 @@ static __devexit int si470x_i2c_remove(struct i2c_client *client) free_irq(client->irq, radio); cancel_work_sync(&radio->radio_work); video_unregister_device(radio->videodev); - kfree(radio); i2c_set_clientdata(client, NULL); + kfree(radio); return 0; }