|
@@ -372,7 +372,6 @@ static int __init atmel_wm97xx_probe(struct platform_device *pdev)
|
|
|
err_irq:
|
|
|
free_irq(atmel_wm97xx->ac97c_irq, atmel_wm97xx);
|
|
|
err:
|
|
|
- platform_set_drvdata(pdev, NULL);
|
|
|
kfree(atmel_wm97xx);
|
|
|
return ret;
|
|
|
}
|
|
@@ -386,7 +385,6 @@ static int __exit atmel_wm97xx_remove(struct platform_device *pdev)
|
|
|
free_irq(atmel_wm97xx->ac97c_irq, atmel_wm97xx);
|
|
|
del_timer_sync(&atmel_wm97xx->pen_timer);
|
|
|
wm97xx_unregister_mach_ops(wm);
|
|
|
- platform_set_drvdata(pdev, NULL);
|
|
|
kfree(atmel_wm97xx);
|
|
|
|
|
|
return 0;
|