Skip to content

Commit ba607b6

Browse files
shesselbaJason Cooper
authored andcommitted
pinctrl: mvebu: make pdma clock on dove mandatory
With the ability to pass clocks through DT, now make the pdma clock of dove pinctrl mandatory. Otherwise, pinctrl will hang the system when accessing some registers. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
1 parent db7d77e commit ba607b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/pinctrl/mvebu/pinctrl-dove.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,11 @@ static int __devinit dove_pinctrl_probe(struct platform_device *pdev)
595595
* grab clk to make sure it is ticking.
596596
*/
597597
clk = devm_clk_get(&pdev->dev, NULL);
598-
if (!IS_ERR(clk))
599-
clk_prepare_enable(clk);
598+
if (IS_ERR(clk)) {
599+
dev_err(&pdev->dev, "Unable to get pdma clock");
600+
return PTR_RET(clk);
601+
}
602+
clk_prepare_enable(clk);
600603

601604
return mvebu_pinctrl_probe(pdev);
602605
}

0 commit comments

Comments
 (0)