diff options
Diffstat (limited to 'target/linux/generic/backport-4.19')
-rw-r--r-- | target/linux/generic/backport-4.19/800-v5.0-usb-leds-fix-regression-in-usbport-led-trigger.patch | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/target/linux/generic/backport-4.19/800-v5.0-usb-leds-fix-regression-in-usbport-led-trigger.patch b/target/linux/generic/backport-4.19/800-v5.0-usb-leds-fix-regression-in-usbport-led-trigger.patch index 112a01a8dc..11a0592f3f 100644 --- a/target/linux/generic/backport-4.19/800-v5.0-usb-leds-fix-regression-in-usbport-led-trigger.patch +++ b/target/linux/generic/backport-4.19/800-v5.0-usb-leds-fix-regression-in-usbport-led-trigger.patch @@ -26,7 +26,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- --- a/drivers/usb/core/ledtrig-usbport.c +++ b/drivers/usb/core/ledtrig-usbport.c -@@ -119,11 +119,6 @@ static const struct attribute_group ports_group = { +@@ -119,11 +119,6 @@ static const struct attribute_group port .attrs = ports_attrs, }; @@ -38,7 +38,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> /*************************************** * Adding & removing ports ***************************************/ -@@ -307,6 +302,7 @@ static int usbport_trig_notify(struct notifier_block *nb, unsigned long action, +@@ -307,6 +302,7 @@ static int usbport_trig_notify(struct no static int usbport_trig_activate(struct led_classdev *led_cdev) { struct usbport_trig_data *usbport_data; @@ -46,7 +46,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> usbport_data = kzalloc(sizeof(*usbport_data), GFP_KERNEL); if (!usbport_data) -@@ -315,6 +311,9 @@ static int usbport_trig_activate(struct led_classdev *led_cdev) +@@ -315,6 +311,9 @@ static int usbport_trig_activate(struct /* List of ports */ INIT_LIST_HEAD(&usbport_data->ports); @@ -56,7 +56,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> usb_for_each_dev(usbport_data, usbport_trig_add_usb_dev_ports); usbport_trig_update_count(usbport_data); -@@ -322,8 +321,11 @@ static int usbport_trig_activate(struct led_classdev *led_cdev) +@@ -322,8 +321,11 @@ static int usbport_trig_activate(struct usbport_data->nb.notifier_call = usbport_trig_notify; led_set_trigger_data(led_cdev, usbport_data); usb_register_notify(&usbport_data->nb); @@ -69,7 +69,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> } static void usbport_trig_deactivate(struct led_classdev *led_cdev) -@@ -335,6 +337,8 @@ static void usbport_trig_deactivate(struct led_classdev *led_cdev) +@@ -335,6 +337,8 @@ static void usbport_trig_deactivate(stru usbport_trig_remove_port(usbport_data, port); } @@ -78,7 +78,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> usb_unregister_notify(&usbport_data->nb); kfree(usbport_data); -@@ -344,7 +348,6 @@ static struct led_trigger usbport_led_trigger = { +@@ -344,7 +348,6 @@ static struct led_trigger usbport_led_tr .name = "usbport", .activate = usbport_trig_activate, .deactivate = usbport_trig_deactivate, @@ -86,6 +86,3 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> }; static int __init usbport_trig_init(void) --- -cgit 1.2-0.3.lf.el7 - |