File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -409,10 +409,11 @@ static int _init_main_clk(struct omap_hwmod *oh)
409
409
return 0 ;
410
410
411
411
oh -> _clk = omap_clk_get_by_name (oh -> main_clk );
412
- if (!oh -> _clk )
412
+ if (!oh -> _clk ) {
413
413
pr_warning ("omap_hwmod: %s: cannot clk_get main_clk %s\n" ,
414
414
oh -> name , oh -> main_clk );
415
415
return - EINVAL ;
416
+ }
416
417
417
418
if (!oh -> _clk -> clkdm )
418
419
pr_warning ("omap_hwmod: %s: missing clockdomain for %s.\n" ,
@@ -444,10 +445,11 @@ static int _init_interface_clks(struct omap_hwmod *oh)
444
445
continue ;
445
446
446
447
c = omap_clk_get_by_name (os -> clk );
447
- if (!c )
448
+ if (!c ) {
448
449
pr_warning ("omap_hwmod: %s: cannot clk_get interface_clk %s\n" ,
449
450
oh -> name , os -> clk );
450
451
ret = - EINVAL ;
452
+ }
451
453
os -> _clk = c ;
452
454
}
453
455
@@ -470,10 +472,11 @@ static int _init_opt_clks(struct omap_hwmod *oh)
470
472
471
473
for (i = oh -> opt_clks_cnt , oc = oh -> opt_clks ; i > 0 ; i -- , oc ++ ) {
472
474
c = omap_clk_get_by_name (oc -> clk );
473
- if (!c )
475
+ if (!c ) {
474
476
pr_warning ("omap_hwmod: %s: cannot clk_get opt_clk %s\n" ,
475
477
oh -> name , oc -> clk );
476
478
ret = - EINVAL ;
479
+ }
477
480
oc -> _clk = c ;
478
481
}
479
482
You can’t perform that action at this time.
0 commit comments