mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
interconnect: qcom: icc-rpmh: use devm_ioremap
Using devm_ioremap_resource will check the resource boundaries. In legacy hardwares we have memory overlaps between the noc devices. Hence use devm_ioremap instead of devm_ioremap_resource. Change-Id: Ifc8a1bb60183058a7c3845c231edfa53115d817e Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
This commit is contained in:
parent
d9aae10c87
commit
487d9a368e
|
|
@ -295,7 +295,7 @@ static struct regmap *qcom_icc_rpmh_map(struct platform_device *pdev,
|
|||
if (!res)
|
||||
return NULL;
|
||||
|
||||
base = devm_ioremap_resource(dev, res);
|
||||
base = devm_ioremap(dev, res->start, resource_size(res));
|
||||
if (IS_ERR(base))
|
||||
return ERR_CAST(base);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user