pinctrl: bcm2835: Use existing pointer to struct device
authorTobias Klauser <tklauser@distanz.ch>
Mon, 8 Oct 2012 09:40:36 +0000 (11:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:09:27 +0000 (09:09 +0200)
The pointer to "pdev->dev" is already stored in "dev", so use it in
devm_request_and_ioremap().

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-bcm2835.c

index a4adee633fa91f5d3f09ccf3d03d29053d114da5..3e0cc0ddb41800aa7bd48f31d0abc5d9e8e73121 100644 (file)
@@ -960,7 +960,7 @@ static int __devinit bcm2835_pinctrl_probe(struct platform_device *pdev)
                return err;
        }
 
-       pc->base = devm_request_and_ioremap(&pdev->dev, &iomem);
+       pc->base = devm_request_and_ioremap(dev, &iomem);
        if (!pc->base)
                return -EADDRNOTAVAIL;