Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a55196ef authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Lee Jones
Browse files

mfd: fsl-imx25: 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: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2eb131ef
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@ static void mx25_tsadc_setup_clk(struct platform_device *pdev,
static int mx25_tsadc_probe(struct platform_device *pdev)
{
	struct device *dev = &pdev->dev;
	struct device_node *np = dev->of_node;
	struct mx25_tsadc *tsadc;
	struct resource *res;
	int ret;
@@ -178,9 +177,7 @@ static int mx25_tsadc_probe(struct platform_device *pdev)

	platform_set_drvdata(pdev, tsadc);

	of_platform_populate(np, NULL, NULL, dev);

	return 0;
	return devm_of_platform_populate(dev);
}

static const struct of_device_id mx25_tsadc_ids[] = {