Lines Matching refs:np
218 static void __init sp804_of_init(struct device_node *np) in sp804_of_init() argument
225 const char *name = of_get_property(np, "compatible", NULL); in sp804_of_init()
227 base = of_iomap(np, 0); in sp804_of_init()
235 if (initialized || !of_device_is_available(np)) in sp804_of_init()
238 clk1 = of_clk_get(np, 0); in sp804_of_init()
243 if (of_count_phandle_with_args(np, "clocks", "#clock-cells") == 3) { in sp804_of_init()
244 clk2 = of_clk_get(np, 1); in sp804_of_init()
246 pr_err("sp804: %s clock not found: %d\n", np->name, in sp804_of_init()
253 irq = irq_of_parse_and_map(np, 0); in sp804_of_init()
257 of_property_read_u32(np, "arm,sp804-has-irq", &irq_num); in sp804_of_init()
274 static void __init integrator_cp_of_init(struct device_node *np) in integrator_cp_of_init() argument
279 const char *name = of_get_property(np, "compatible", NULL); in integrator_cp_of_init()
282 base = of_iomap(np, 0); in integrator_cp_of_init()
285 clk = of_clk_get(np, 0); in integrator_cp_of_init()
292 if (init_count == 2 || !of_device_is_available(np)) in integrator_cp_of_init()
298 irq = irq_of_parse_and_map(np, 0); in integrator_cp_of_init()