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 36579ac commit e48dee9Copy full SHA for e48dee9
drivers/mfd/qcom_rpm.c
@@ -672,21 +672,11 @@ static int qcom_rpm_probe(struct platform_device *pdev)
672
if (ret)
673
dev_warn(&pdev->dev, "failed to mark wakeup irq as wakeup\n");
674
675
- return of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
676
-}
677
-
678
-static int qcom_rpm_remove(struct platform_device *pdev)
679
-{
680
- struct qcom_rpm *rpm = dev_get_drvdata(&pdev->dev);
681
682
- of_platform_depopulate(&pdev->dev);
683
684
- return 0;
+ return devm_of_platform_populate(&pdev->dev);
685
}
686
687
static struct platform_driver qcom_rpm_driver = {
688
.probe = qcom_rpm_probe,
689
- .remove = qcom_rpm_remove,
690
.driver = {
691
.name = "qcom_rpm",
692
.of_match_table = qcom_rpm_of_match,
0 commit comments