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

Commit 94ec28f2 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

spmi: spmi-pmic-arb-debug: replace ioremap_resource with ioremap



Replace "devm_ioremap_resource" with "devm_ioremap" to avoid
failure in QFPROM driver as it uses the physical address range
which is used to read "fuse" bits.

Change-Id: Idf74fcf7677972dffd06f3695dc56aa6ce9b3ef3
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent a16407c5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2012-2018, 2020, The Linux Foundation. All rights reserved. */

#include <linux/clk.h>
#include <linux/delay.h>
@@ -266,7 +266,8 @@ static int spmi_pmic_arb_debug_probe(struct platform_device *pdev)
			return -EINVAL;
		}

		fuse_addr = devm_ioremap_resource(&pdev->dev, res);
		fuse_addr = devm_ioremap(&pdev->dev, res->start,
					 resource_size(res));
		if (IS_ERR(fuse_addr))
			return PTR_ERR(fuse_addr);