|
@@ -137,11 +137,17 @@ static bool usbport_trig_port_observed(struct usbport_trig_data *usbport_data,
|
|
|
if (!led_np)
|
|
|
return false;
|
|
|
|
|
|
- /* Get node of port being added */
|
|
|
+ /*
|
|
|
+ * Get node of port being added
|
|
|
+ *
|
|
|
+ * FIXME: This is really the device node of the connected device
|
|
|
+ */
|
|
|
port_np = usb_of_get_child_node(usb_dev->dev.of_node, port1);
|
|
|
if (!port_np)
|
|
|
return false;
|
|
|
|
|
|
+ of_node_put(port_np);
|
|
|
+
|
|
|
/* Amount of trigger sources for this LED */
|
|
|
count = of_count_phandle_with_args(led_np, "trigger-sources",
|
|
|
"#trigger-source-cells");
|