ALSA: ac97: Fix of-node refcount unbalance
[sfrench/cifs-2.6.git] / sound / ac97 / bus.c
index 9f0c480489ef04384445b35f8786c020dfc9d7fa..9cbf6927abe96a735f0e188cfd735710c1d989ad 100644 (file)
@@ -84,7 +84,7 @@ ac97_of_get_child_device(struct ac97_controller *ac97_ctrl, int idx,
                if ((idx != of_property_read_u32(node, "reg", &reg)) ||
                    !of_device_is_compatible(node, compat))
                        continue;
-               return of_node_get(node);
+               return node;
        }
 
        return NULL;