diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-06-15 14:17:19 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-06-15 14:36:47 +0200 |
commit | ad76366d7ddfe83a0ca2f28d4104697e81c3c3cd (patch) | |
tree | c1d0b56549d9630867fc2692e9279965d35c64cf /target/linux/generic/patches-4.4/834-ledtrig-libata.patch | |
parent | be7415810281b9ababe5fcec34236a0536af5939 (diff) | |
download | upstream-ad76366d7ddfe83a0ca2f28d4104697e81c3c3cd.tar.gz upstream-ad76366d7ddfe83a0ca2f28d4104697e81c3c3cd.tar.bz2 upstream-ad76366d7ddfe83a0ca2f28d4104697e81c3c3cd.zip |
kernel: refresh patches
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/patches-4.4/834-ledtrig-libata.patch')
-rw-r--r-- | target/linux/generic/patches-4.4/834-ledtrig-libata.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/patches-4.4/834-ledtrig-libata.patch b/target/linux/generic/patches-4.4/834-ledtrig-libata.patch index c60fc1a515..9a9203b140 100644 --- a/target/linux/generic/patches-4.4/834-ledtrig-libata.patch +++ b/target/linux/generic/patches-4.4/834-ledtrig-libata.patch @@ -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)) { |