wifi: rtl8xxxu: use module_usb_driver
authorMartin Kaiser <martin@kaiser.cx>
Tue, 7 Mar 2023 19:57:17 +0000 (20:57 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Mar 2023 13:44:01 +0000 (15:44 +0200)
commit0606b344021a37140ef467ddf30d4b8182e7bbe1
tree03a122b6a74b086a368c1f7d8f195a6ef08299a3
parent8a66293e73a520a42a7653d2ca32074ba323ff56
wifi: rtl8xxxu: use module_usb_driver

We can use the module_usb_driver macro instead of open-coding the driver's
init and exit functions. This is simpler and saves some lines of code.
Other realtek wireless drivers use module_usb_driver as well.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230307195718.168021-1-martin@kaiser.cx
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c