mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mfd: atmel: Use devm_of_platform_populate()
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
c42a8edbe9
commit
ad56b2a4da
1 changed files with 1 additions and 1 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue