diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2023-03-23 11:09:52 +0300 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2023-03-28 14:23:42 +0300 |
commit | a33bfafd99e0d1e33dfe910f751426f298a218b6 (patch) | |
tree | 879922d4fba64e63da5254597350b4489ea86b23 /drivers/soc/ti/wkup_m3_ipc.c | |
parent | 00e34c94987e4fe866f12ad8eac17268c936880c (diff) | |
download | linux-a33bfafd99e0d1e33dfe910f751426f298a218b6.tar.xz |
soc: ti: Use devm_platform_ioremap_resource()
According to commit 7945f929f1a7 ("drivers: provide
devm_platform_ioremap_resource()"), convert platform_get_resource(),
devm_ioremap_resource() to a single call to use
devm_platform_ioremap_resource(), as this is exactly what this function
does.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230323080952.124410-1-yang.lee@linux.alibaba.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/soc/ti/wkup_m3_ipc.c')
-rw-r--r-- | drivers/soc/ti/wkup_m3_ipc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c index 6970478b40f3..c9197912ec24 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -615,7 +615,6 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) int irq, ret, temp; phandle rproc_phandle; struct rproc *m3_rproc; - struct resource *res; struct task_struct *task; struct wkup_m3_ipc *m3_ipc; struct device_node *np = dev->of_node; @@ -624,8 +623,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) if (!m3_ipc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - m3_ipc->ipc_mem_base = devm_ioremap_resource(dev, res); + m3_ipc->ipc_mem_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(m3_ipc->ipc_mem_base)) return PTR_ERR(m3_ipc->ipc_mem_base); |