mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rk29_key: del adc timer if probe failed
This commit is contained in:
@@ -425,6 +425,8 @@ static int __devinit keys_probe(struct platform_device *pdev)
|
||||
}
|
||||
if(pdata->chn >= 0 && ddata->client);
|
||||
adc_unregister(ddata->client);
|
||||
if(pdata->chn >= 0)
|
||||
del_timer_sync(&ddata->timer);
|
||||
fail1:
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
fail0:
|
||||
|
||||
Reference in New Issue
Block a user