Skip to content

Commit a33bfaf

Browse files
Yang Linmenon
authored andcommitted
soc: ti: Use devm_platform_ioremap_resource()
According to commit 7945f92 ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 00e34c9 commit a33bfaf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/soc/ti/wkup_m3_ipc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
615615
int irq, ret, temp;
616616
phandle rproc_phandle;
617617
struct rproc *m3_rproc;
618-
struct resource *res;
619618
struct task_struct *task;
620619
struct wkup_m3_ipc *m3_ipc;
621620
struct device_node *np = dev->of_node;
@@ -624,8 +623,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
624623
if (!m3_ipc)
625624
return -ENOMEM;
626625

627-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
628-
m3_ipc->ipc_mem_base = devm_ioremap_resource(dev, res);
626+
m3_ipc->ipc_mem_base = devm_platform_ioremap_resource(pdev, 0);
629627
if (IS_ERR(m3_ipc->ipc_mem_base))
630628
return PTR_ERR(m3_ipc->ipc_mem_base);
631629

0 commit comments

Comments
 (0)