We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 369259d commit 92bac7dCopy full SHA for 92bac7d
drivers/extcon/extcon-adc-jack.c
@@ -164,7 +164,8 @@ static void adc_jack_remove(struct platform_device *pdev)
164
{
165
struct adc_jack_data *data = platform_get_drvdata(pdev);
166
167
- device_init_wakeup(&pdev->dev, false);
+ if (data->wakeup_source)
168
+ device_init_wakeup(&pdev->dev, false);
169
free_irq(data->irq, data);
170
cancel_work_sync(&data->handler.work);
171
}
0 commit comments