mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
USB: sisusbvga: use module_usb_driver()
Now, that we only do usb_register() and usb_sisusb_exit() in module_init() and module_exit() respectivelly, we can simply use module_usb_driver(). Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: Thomas Winischhofer <thomas@winischhofer.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-sh@vger.kernel.org Cc: linux-usb@vger.kernel.org Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20221208090749.28056-3-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a2f3d83cd7
commit
4b6be020bd
@ -2947,18 +2947,7 @@ static struct usb_driver sisusb_driver = {
|
||||
.id_table = sisusb_table,
|
||||
};
|
||||
|
||||
static int __init usb_sisusb_init(void)
|
||||
{
|
||||
return usb_register(&sisusb_driver);
|
||||
}
|
||||
|
||||
static void __exit usb_sisusb_exit(void)
|
||||
{
|
||||
usb_deregister(&sisusb_driver);
|
||||
}
|
||||
|
||||
module_init(usb_sisusb_init);
|
||||
module_exit(usb_sisusb_exit);
|
||||
module_usb_driver(sisusb_driver);
|
||||
|
||||
MODULE_AUTHOR("Thomas Winischhofer <thomas@winischhofer.net>");
|
||||
MODULE_DESCRIPTION("sisusbvga - Driver for Net2280/SiS315-based USB2VGA dongles");
|
||||
|
Loading…
Reference in New Issue
Block a user