mtd: brcmnand: defer to devm_ioremap_resource() for error checking
Subsystems (2)
PATCH 1/1 mtd: brcmnand: defer to devm_ioremap_resource() for error checking
devm_ioremap_resource() does error checking on the 'res' argument, so drop the error check in bcm6368_nand.c.
Signed-off-by Brian Norris <[email protected]>
Cc Simon Arlott <[email protected]>
---
Compile tested only
drivers/mtd/nand/brcmnand/bcm6368_nand.c | 3 --- 1 file changed, 3 deletions(-)
drivers/mtd/nand/brcmnand/bcm6368_nand.c +0 -3
@@ -105,9 +105,6 @@ static int bcm6368_nand_probe(struct platform_device *pdev) res =platform_get_resource_byname (pdev,IORESOURCE_MEM ,"nand-int-base" ); -if (!res) -return -EINVAL ; - priv->base =devm_ioremap_resource (dev, res);if (IS_ERR (priv->base))return PTR_ERR (priv->base);
Signature · 1 line
2.6.0.rc2.230.g3dd15c0
Quoted 5 lines · Brian Norris
devm_ioremap_resource()does error checking on the 'res' argument, so drop the error check inbcm6368_nand.c.Signed-off-by Brian Norris <[email protected]>Cc Simon Arlott <[email protected]>
Tested-by Simon Arlott <[email protected]>
Quoted 21 lines
---
Compile tested onlydrivers/mtd/nand/brcmnand/bcm6368_nand.c | 3 --- 1 file changed, 3 deletions(-)drivers/mtd/nand/brcmnand/bcm6368_nand.c +0
-3@@ -105,9 +105,6 @@ static int bcm6368_nand_probe(struct platform_device *pdev) res =platform_get_resource_byname (pdev,IORESOURCE_MEM ,"nand-int-base" ); -if (!res) -return -EINVAL ; - priv->base =devm_ioremap_resource (dev, res);if (IS_ERR (priv->base))return PTR_ERR (priv->base);
Signature · 1 line
Simon Arlott
Brian Norris
AppliedQuoted 8 lines · Simon Arlott
Quoted 5 lines · Brian Norris
devm_ioremap_resource()does error checking on the 'res' argument, so drop the error check inbcm6368_nand.c.Signed-off-by Brian Norris <[email protected]>Cc Simon Arlott <[email protected]>Tested-by Simon Arlott <[email protected]>
Applied to l2-mtd.git