Lines Matching refs:nc
205 of_register_moxtet_device(struct moxtet *moxtet, struct device_node *nc) in of_register_moxtet_device() argument
214 "Moxtet device alloc error for %pOF\n", nc); in of_register_moxtet_device()
218 ret = of_property_read_u32(nc, "reg", &val); in of_register_moxtet_device()
221 nc, ret); in of_register_moxtet_device()
229 nc, dev->idx); in of_register_moxtet_device()
237 dev_err(moxtet->dev, "%pOF Moxtet address 0x%x is empty\n", nc, in of_register_moxtet_device()
243 of_node_get(nc); in of_register_moxtet_device()
244 dev->dev.of_node = nc; in of_register_moxtet_device()
249 "Moxtet device register error for %pOF\n", nc); in of_register_moxtet_device()
250 of_node_put(nc); in of_register_moxtet_device()
264 struct device_node *nc; in of_register_moxtet_devices() local
269 for_each_available_child_of_node(moxtet->dev->of_node, nc) { in of_register_moxtet_devices()
270 if (of_node_test_and_set_flag(nc, OF_POPULATED)) in of_register_moxtet_devices()
272 dev = of_register_moxtet_device(moxtet, nc); in of_register_moxtet_devices()
276 nc); in of_register_moxtet_devices()
277 of_node_clear_flag(nc, OF_POPULATED); in of_register_moxtet_devices()