Skip to content

Commit

Permalink
Merge branch 'fix/misc' into for-linus
Browse files Browse the repository at this point in the history
* fix/misc:
  ALSA: riptide -  proper handling of pci_register_driver for joystick
  • Loading branch information
Takashi Iwai committed Jul 16, 2009
2 parents 2688779 + cb65c87 commit 9d79b13
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sound/pci/riptide/riptide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d79b13

Please sign in to comment.