]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/mfd/atmel-flexcom.c
mfd: qcom-spmi-pmic: Use devm_of_platform_populate()
[mirror_ubuntu-bionic-kernel.git] / drivers / mfd / atmel-flexcom.c
index e8e67be6b493ac09d5a16959fd42edbe46fe272d..064bde9cff5af26fc9ba02ba65136bc814e6fc9e 100644 (file)
@@ -80,7 +80,7 @@ static int atmel_flexcom_probe(struct platform_device *pdev)
 
        clk_disable_unprepare(clk);
 
-       return of_platform_populate(np, NULL, NULL, &pdev->dev);
+       return devm_of_platform_populate(&pdev->dev);
 }
 
 static const struct of_device_id atmel_flexcom_of_match[] = {