From: kfx Date: Sat, 1 Sep 2012 09:07:53 +0000 (+0800) Subject: rk29_key: del adc timer if probe failed X-Git-Tag: firefly_0821_release~8764 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=27437642f25a1894998a53dc1fa73f8ea0a1f096;p=firefly-linux-kernel-4.4.55.git rk29_key: del adc timer if probe failed --- diff --git a/drivers/input/keyboard/rk29_keys.c b/drivers/input/keyboard/rk29_keys.c index 711388cd3b18..16b56198709f 100755 --- a/drivers/input/keyboard/rk29_keys.c +++ b/drivers/input/keyboard/rk29_keys.c @@ -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: