usb: core: Use module_led_trigger macro to simplify the code
authorLi Zetao <lizetao1@huawei.com>
Tue, 15 Aug 2023 07:46:48 +0000 (15:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 12:44:23 +0000 (14:44 +0200)
commit20deab8bfc936063385fdce19287f1f630cb2f4b
treef1d2f3cdf48e9da5cdf280628961354f5a899df7
parent1fa206bb764f37d2ab4bf671e483153ef0659b34
usb: core: Use module_led_trigger macro to simplify the code

Use the module_led_trigger macro to simplify the code, which is the
same as declaring with module_init() and module_exit().

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230815074648.1015175-1-lizetao1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/ledtrig-usbport.c