{
const struct lmk04832_device_info *info;
int rdbk_pin = RDBK_CLKIN_SEL1;
- struct device_node *child;
struct lmk04832 *lmk;
u8 tmp[3];
int ret;
device_property_read_u32(lmk->dev, "ti,sysref-pulse-count",
&lmk->sysref_pulse_cnt);
- for_each_child_of_node(lmk->dev->of_node, child) {
+ for_each_child_of_node_scoped(lmk->dev->of_node, child) {
int reg;
ret = of_property_read_u32(child, "reg", ®);
if (ret) {
dev_err(lmk->dev, "missing reg property in child: %s\n",
child->full_name);
- of_node_put(child);
return ret;
}