Commit 9d79b136 authored by Takashi Iwai's avatar Takashi Iwai

Merge branch 'fix/misc' into for-linus

* fix/misc:
  ALSA: riptide -  proper handling of pci_register_driver for joystick
parents 26887793 cb65c873
...@@ -2197,9 +2197,12 @@ static int __init alsa_card_riptide_init(void) ...@@ -2197,9 +2197,12 @@ static int __init alsa_card_riptide_init(void)
if (err < 0) if (err < 0)
return err; return err;
#if defined(SUPPORT_JOYSTICK) #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 #endif
return 0; return err;
} }
static void __exit alsa_card_riptide_exit(void) static void __exit alsa_card_riptide_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment