aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-10-08 05:40:36 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-15 03:09:27 -0400
commit8c6871979d903b8b0e4cd78a59d84afc262611bf (patch)
tree92cdb6daa7d149802b491920ad41b017f32c2f8a
parent47dbec59c37ab02946a6db7ac30c3bf6ca02630c (diff)
pinctrl: bcm2835: Use existing pointer to struct device
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>
-rw-r--r--drivers/pinctrl/pinctrl-bcm2835.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c
index a4adee633fa9..3e0cc0ddb418 100644
--- a/drivers/pinctrl/pinctrl-bcm2835.c
+++ b/drivers/pinctrl/pinctrl-bcm2835.c
@@ -960,7 +960,7 @@ static int __devinit bcm2835_pinctrl_probe(struct platform_device *pdev)
960 return err; 960 return err;
961 } 961 }
962 962
963 pc->base = devm_request_and_ioremap(&pdev->dev, &iomem); 963 pc->base = devm_request_and_ioremap(dev, &iomem);
964 if (!pc->base) 964 if (!pc->base)
965 return -EADDRNOTAVAIL; 965 return -EADDRNOTAVAIL;
966 966