diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2012-10-08 11:40:36 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-10-15 09:09:27 +0200 |
commit | 8c6871979d903b8b0e4cd78a59d84afc262611bf (patch) | |
tree | 92cdb6daa7d149802b491920ad41b017f32c2f8a /drivers/pinctrl/pinctrl-bcm2835.c | |
parent | 47dbec59c37ab02946a6db7ac30c3bf6ca02630c (diff) | |
download | op-kernel-dev-8c6871979d903b8b0e4cd78a59d84afc262611bf.zip op-kernel-dev-8c6871979d903b8b0e4cd78a59d84afc262611bf.tar.gz |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-bcm2835.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-bcm2835.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c index a4adee6..3e0cc0d 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) return err; } - pc->base = devm_request_and_ioremap(&pdev->dev, &iomem); + pc->base = devm_request_and_ioremap(dev, &iomem); if (!pc->base) return -EADDRNOTAVAIL; |