Unverified Commit 69c23dbf authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Mark Brown
Browse files

spi: nxp-fspi: Use devm API to fix missed unregistration of controller



This driver forgets to unregister controller when remove.
Use devm API to unregister it automatically to fix it.

Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20191109075517.29988-1-hslester96@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8d858491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1027,7 +1027,7 @@ static int nxp_fspi_probe(struct platform_device *pdev)

	ctlr->dev.of_node = np;

	ret = spi_register_controller(ctlr);
	ret = devm_spi_register_controller(&pdev->dev, ctlr);
	if (ret)
		goto err_destroy_mutex;