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: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
This commit is contained in:
parent
a2c17c1706
commit
b1c9ed783a
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2012-2018, 2021, 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user