mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-06 17:35:20 +02:00
spi: bcmbca-hsspi: Fix missing pm_runtime_disable()
[ Upstream commit4439a2e92c
] The pm_runtime_disable() is missing in remove function, use devm_pm_runtime_enable() to fix it. So the pm_runtime_disable() in the probe error path can also be removed. Fixes:a38a2233f2
("spi: bcmbca-hsspi: Add driver for newer HSSPI controller") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Reviewed-by: William Zhang <william.zhang@broadcom.com> Link: https://patch.msgid.link/20240826124903.3429235-2-ruanjinjie@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7c84cb5a39
commit
e91e803da1
|
@ -546,12 +546,14 @@ static int bcmbca_hsspi_probe(struct platform_device *pdev)
|
|||
goto out_put_host;
|
||||
}
|
||||
|
||||
pm_runtime_enable(&pdev->dev);
|
||||
ret = devm_pm_runtime_enable(&pdev->dev);
|
||||
if (ret)
|
||||
goto out_put_host;
|
||||
|
||||
ret = sysfs_create_group(&pdev->dev.kobj, &bcmbca_hsspi_group);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "couldn't register sysfs group\n");
|
||||
goto out_pm_disable;
|
||||
goto out_put_host;
|
||||
}
|
||||
|
||||
/* register and we are done */
|
||||
|
@ -565,8 +567,6 @@ static int bcmbca_hsspi_probe(struct platform_device *pdev)
|
|||
|
||||
out_sysgroup_disable:
|
||||
sysfs_remove_group(&pdev->dev.kobj, &bcmbca_hsspi_group);
|
||||
out_pm_disable:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
out_put_host:
|
||||
spi_controller_put(host);
|
||||
out_disable_pll_clk:
|
||||
|
|
Loading…
Reference in New Issue
Block a user