Lines Matching refs:np
212 static void __init sp804_of_init(struct device_node *np) in sp804_of_init() argument
219 const char *name = of_get_property(np, "compatible", NULL); in sp804_of_init()
221 base = of_iomap(np, 0); in sp804_of_init()
229 if (initialized || !of_device_is_available(np)) in sp804_of_init()
232 clk1 = of_clk_get(np, 0); in sp804_of_init()
237 if (of_count_phandle_with_args(np, "clocks", "#clock-cells") == 3) { in sp804_of_init()
238 clk2 = of_clk_get(np, 1); in sp804_of_init()
240 pr_err("sp804: %s clock not found: %d\n", np->name, in sp804_of_init()
247 irq = irq_of_parse_and_map(np, 0); in sp804_of_init()
251 of_property_read_u32(np, "arm,sp804-has-irq", &irq_num); in sp804_of_init()
268 static void __init integrator_cp_of_init(struct device_node *np) in integrator_cp_of_init() argument
273 const char *name = of_get_property(np, "compatible", NULL); in integrator_cp_of_init()
276 base = of_iomap(np, 0); in integrator_cp_of_init()
279 clk = of_clk_get(np, 0); in integrator_cp_of_init()
286 if (init_count == 2 || !of_device_is_available(np)) in integrator_cp_of_init()
292 irq = irq_of_parse_and_map(np, 0); in integrator_cp_of_init()