Lines Matching refs:nc
204 of_register_moxtet_device(struct moxtet *moxtet, struct device_node *nc) in of_register_moxtet_device() argument
213 "Moxtet device alloc error for %pOF\n", nc); in of_register_moxtet_device()
217 ret = of_property_read_u32(nc, "reg", &val); in of_register_moxtet_device()
220 nc, ret); in of_register_moxtet_device()
228 nc, dev->idx); in of_register_moxtet_device()
236 dev_err(moxtet->dev, "%pOF Moxtet address 0x%x is empty\n", nc, in of_register_moxtet_device()
242 of_node_get(nc); in of_register_moxtet_device()
243 dev->dev.of_node = nc; in of_register_moxtet_device()
248 "Moxtet device register error for %pOF\n", nc); in of_register_moxtet_device()
249 of_node_put(nc); in of_register_moxtet_device()
263 struct device_node *nc; in of_register_moxtet_devices() local
268 for_each_available_child_of_node(moxtet->dev->of_node, nc) { in of_register_moxtet_devices()
269 if (of_node_test_and_set_flag(nc, OF_POPULATED)) in of_register_moxtet_devices()
271 dev = of_register_moxtet_device(moxtet, nc); in of_register_moxtet_devices()
275 nc); in of_register_moxtet_devices()
276 of_node_clear_flag(nc, OF_POPULATED); in of_register_moxtet_devices()