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 c70011a commit 683de18Copy full SHA for 683de18
drivers/clk/bcm/clk-raspberrypi.c
@@ -240,7 +240,7 @@ static int raspberrypi_register_pllb_arm(struct raspberrypi_clk *rpi)
240
{
241
int ret;
242
243
- ret = clk_hw_register(rpi->dev, &raspberrypi_clk_pllb_arm.hw);
+ ret = devm_clk_hw_register(rpi->dev, &raspberrypi_clk_pllb_arm.hw);
244
if (ret) {
245
dev_err(rpi->dev, "Failed to initialize pllb_arm\n");
246
return ret;
@@ -250,7 +250,6 @@ static int raspberrypi_register_pllb_arm(struct raspberrypi_clk *rpi)
250
NULL, "cpu0");
251
if (!rpi->pllb_arm_lookup) {
252
dev_err(rpi->dev, "Failed to initialize pllb_arm_lookup\n");
253
- clk_hw_unregister_fixed_factor(&raspberrypi_clk_pllb_arm.hw);
254
return -ENOMEM;
255
}
256
0 commit comments