mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Merge branch 'fix/misc' into for-linus
* fix/misc: ALSA: riptide - proper handling of pci_register_driver for joystick
This commit is contained in:
commit
9d79b13691
1 changed files with 5 additions and 2 deletions
|
@ -2197,9 +2197,12 @@ static int __init alsa_card_riptide_init(void)
|
|||
if (err < 0)
|
||||
return err;
|
||||
#if defined(SUPPORT_JOYSTICK)
|
||||
pci_register_driver(&joystick_driver);
|
||||
err = pci_register_driver(&joystick_driver);
|
||||
/* On failure unregister formerly registered audio driver */
|
||||
if (err < 0)
|
||||
pci_unregister_driver(&driver);
|
||||
#endif
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static void __exit alsa_card_riptide_exit(void)
|
||||
|
|
Loading…
Reference in a new issue