kernel: refresh patches
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 834-ledtrig-libata.patch
index c60fc1a51510020f39aefedff9e7df333c46e994..9a9203b1403b9fffcd397561a7c6ae91335bf77e 100644 (file)
@@ -110,11 +110,11 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +      for (i = 0; i < host->n_ports; i++) {
 +              if (unlikely(!host->ports[i]->ledtrig))
 +                      continue;
++
 +              snprintf(host->ports[i]->ledtrig_name,
 +                      sizeof(host->ports[i]->ledtrig_name), "ata%u",
 +                      host->ports[i]->print_id);
-+
 +              host->ports[i]->ledtrig->name = host->ports[i]->ledtrig_name;
 +
 +              if (led_trigger_register(host->ports[i]->ledtrig)) {