mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
remoteproc: qcom: wcnss: use devm_platform_ioremap_resource_byname()
Convert platform_get_resource_byname(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource_byname(), as this is exactly what this function does. Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> Link: https://lore.kernel.org/r/202303221116427329010@zte.com.cn Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
5b2b675adf
commit
92d24d0927
@ -536,7 +536,6 @@ static int wcnss_probe(struct platform_device *pdev)
|
||||
const char *fw_name = WCNSS_FIRMWARE_NAME;
|
||||
const struct wcnss_data *data;
|
||||
struct qcom_wcnss *wcnss;
|
||||
struct resource *res;
|
||||
struct rproc *rproc;
|
||||
void __iomem *mmio;
|
||||
int ret;
|
||||
@ -574,8 +573,7 @@ static int wcnss_probe(struct platform_device *pdev)
|
||||
|
||||
mutex_init(&wcnss->iris_lock);
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pmu");
|
||||
mmio = devm_ioremap_resource(&pdev->dev, res);
|
||||
mmio = devm_platform_ioremap_resource_byname(pdev, "pmu");
|
||||
if (IS_ERR(mmio)) {
|
||||
ret = PTR_ERR(mmio);
|
||||
goto free_rproc;
|
||||
|
Loading…
Reference in New Issue
Block a user