1
0
Fork 0

mfd: ssbi: Use devm_of_platform_populate()

Use devm_of_platform_populate() instead of of_platform_populate()
to be sure that of_platform_depopulate() is called when removing
the driver.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
hifive-unleashed-5.1
Benjamin Gaignard 2017-10-25 16:15:01 +02:00 committed by Lee Jones
parent 18f7739379
commit f38aa351d0
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ static int ssbi_probe(struct platform_device *pdev)
spin_lock_init(&ssbi->lock);
return of_platform_populate(np, NULL, NULL, &pdev->dev);
return devm_of_platform_populate(&pdev->dev);
}
static const struct of_device_id ssbi_match_table[] = {