Skip to content

Commit dfe0924

Browse files
Wolfram Sangralfbaechle
authored andcommitted
arch/mips/pci: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: John Crispin <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/6349/
1 parent 9fbf8e8 commit dfe0924

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/mips/pci/pci-rt3883.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,6 @@ static int rt3883_pci_probe(struct platform_device *pdev)
436436
return -ENOMEM;
437437

438438
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
439-
if (!res)
440-
return -EINVAL;
441-
442439
rpc->base = devm_ioremap_resource(dev, res);
443440
if (IS_ERR(rpc->base))
444441
return PTR_ERR(rpc->base);

0 commit comments

Comments
 (0)