We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6554898 commit 6a64344Copy full SHA for 6a64344
drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c
@@ -101,12 +101,9 @@ static int sun9i_a80_usb_clk_probe(struct platform_device *pdev)
101
return PTR_ERR(reg);
102
103
bus_clk = devm_clk_get(&pdev->dev, "bus");
104
- if (IS_ERR(bus_clk)) {
105
- ret = PTR_ERR(bus_clk);
106
- if (ret != -EPROBE_DEFER)
107
- dev_err(&pdev->dev, "Couldn't get bus clk: %d\n", ret);
108
- return ret;
109
- }
+ if (IS_ERR(bus_clk))
+ return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk),
+ "Couldn't get bus clk\n");
110
111
/* The bus clock needs to be enabled for us to access the registers */
112
ret = clk_prepare_enable(bus_clk);
0 commit comments