Skip to content

Commit ba607b6

Browse files
shesselbaJason Cooper
authored and
Jason Cooper
committed
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 <[email protected]> Signed-off-by: Jason Cooper <[email protected]>
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

+5-2
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)