File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,6 @@ static struct clk_fixed_factor raspberrypi_clk_pllb_arm = {
237
237
238
238
static int raspberrypi_register_pllb_arm (struct raspberrypi_clk * rpi )
239
239
{
240
- struct clk_lookup * pllb_arm_lookup ;
241
240
int ret ;
242
241
243
242
ret = devm_clk_hw_register (rpi -> dev , & raspberrypi_clk_pllb_arm .hw );
@@ -246,11 +245,11 @@ static int raspberrypi_register_pllb_arm(struct raspberrypi_clk *rpi)
246
245
return ret ;
247
246
}
248
247
249
- pllb_arm_lookup = clkdev_hw_create (& raspberrypi_clk_pllb_arm .hw ,
250
- NULL , "cpu0" );
251
- if (! pllb_arm_lookup ) {
252
- dev_err (rpi -> dev , "Failed to initialize pllb_arm_lookup \n" );
253
- return - ENOMEM ;
248
+ ret = clk_hw_register_clkdev (& raspberrypi_clk_pllb_arm .hw ,
249
+ NULL , "cpu0" );
250
+ if (ret ) {
251
+ dev_err (rpi -> dev , "Failed to initialize clkdev \n" );
252
+ return ret ;
254
253
}
255
254
256
255
return 0 ;
You can’t perform that action at this time.
0 commit comments