mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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 <[email protected]>
This commit is contained in:
parent
a16407c5cc
commit
94ec28f2cc
1 changed files with 3 additions and 2 deletions
|
|
@ -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, 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue