Skip to content

Commit a9ac4ba

Browse files
tititiou36andersson
authored andcommitted
bus: qcom-ssc-block-bus: Remove some duplicated iounmap() calls
reg_mpm_sscaon_config[01] are allocated with devm_ioremap_resource(). So, they will be unmapped automatically by the manage resource framework. Remove the incorrect explicit iounmap() calls from the remove function. Fixes: 97d485e ("bus: add driver for initializing the SSC bus on (some) qcom SoCs") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/efd06711b126e761a06eb5ef82daf9ad4e116a10.1740932040.git.christophe.jaillet@wanadoo.fr Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent d4471b9 commit a9ac4ba

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/bus/qcom-ssc-block-bus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,6 @@ static void qcom_ssc_block_bus_remove(struct platform_device *pdev)
356356

357357
qcom_ssc_block_bus_deinit(&pdev->dev);
358358

359-
iounmap(data->reg_mpm_sscaon_config0);
360-
iounmap(data->reg_mpm_sscaon_config1);
361-
362359
qcom_ssc_block_bus_pds_disable(data->pds, data->num_pds);
363360
qcom_ssc_block_bus_pds_detach(&pdev->dev, data->pds, data->num_pds);
364361
pm_runtime_disable(&pdev->dev);

0 commit comments

Comments
 (0)