Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c687197 authored by Tobias Klauser's avatar Tobias Klauser Committed by Linus Walleij
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 47dbec59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;