Skip to content

Commit

Permalink
pinctrl: bcm2835: Use existing pointer to struct device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Linus Walleij committed Oct 15, 2012
1 parent 47dbec5 commit 8c68719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8c68719

Please sign in to comment.