Merge "soc: qcom: subsystem_notif_virt: Only initialize work for virtual systems"
This commit is contained in:
commit
201b38a555
1 changed files with 1 additions and 2 deletions
|
@ -186,6 +186,7 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
|
||||||
subsystem_restart_irq_handler,
|
subsystem_restart_irq_handler,
|
||||||
IRQF_ONESHOT | IRQF_TRIGGER_RISING,
|
IRQF_ONESHOT | IRQF_TRIGGER_RISING,
|
||||||
subsystem->name, subsystem);
|
subsystem->name, subsystem);
|
||||||
|
INIT_WORK(&subsystem->work, subsystem_notif_wq_func);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dev_err(&pdev->dev, "Unsupported type %d\n",
|
dev_err(&pdev->dev, "Unsupported type %d\n",
|
||||||
|
@ -193,8 +194,6 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subsystem)
|
|
||||||
INIT_WORK(&subsystem->work, subsystem_notif_wq_func);
|
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
destroy_workqueue(ssr_wq);
|
destroy_workqueue(ssr_wq);
|
||||||
|
|
Loading…
Add table
Reference in a new issue