@@ -33,7 +33,7 @@ static void __init timer_get_base_and_rate(struct device_node *np,
3333 * base = of_iomap (np , 0 );
3434
3535 if (!* base )
36- panic ("Unable to map regs for %s " , np -> name );
36+ panic ("Unable to map regs for %pOFn " , np );
3737
3838 /*
3939 * Not all implementations use a periphal clock, so don't panic
@@ -42,8 +42,8 @@ static void __init timer_get_base_and_rate(struct device_node *np,
4242 pclk = of_clk_get_by_name (np , "pclk" );
4343 if (!IS_ERR (pclk ))
4444 if (clk_prepare_enable (pclk ))
45- pr_warn ("pclk for %s is present, but could not be activated\n" ,
46- np -> name );
45+ pr_warn ("pclk for %pOFn is present, but could not be activated\n" ,
46+ np );
4747
4848 timer_clk = of_clk_get_by_name (np , "timer" );
4949 if (IS_ERR (timer_clk ))
@@ -57,7 +57,7 @@ static void __init timer_get_base_and_rate(struct device_node *np,
5757try_clock_freq :
5858 if (of_property_read_u32 (np , "clock-freq" , rate ) &&
5959 of_property_read_u32 (np , "clock-frequency" , rate ))
60- panic ("No clock nor clock-frequency property for %s " , np -> name );
60+ panic ("No clock nor clock-frequency property for %pOFn " , np );
6161}
6262
6363static void __init add_clockevent (struct device_node * event_timer )
0 commit comments