[ALSA] Fix synchronize_irq() bugs, redundancies
authorJeff Garzik <jgarzik@redhat.com>
Tue, 22 Apr 2008 11:50:34 +0000 (13:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:40 +0000 (12:00 +0200)
commitf000fd80937c0d94c67f9f3e7026f1fbc8ef8873
treea1364921df5ed78b387a767787ea945031b5b641
parent8a87c9cf999542db846c3ab93c1065d446427f37
[ALSA] Fix synchronize_irq() bugs, redundancies

free_irq() calls synchronize_irq() for you, so there is no need for
drivers to manually do the same thing (again).  Thus, calls where
sync-irq immediately precedes free-irq can be simplified.

However, during this audit several bugs were noticed, where free-irq is
preceded by a "irq >= 0" check... but the sync-irq call is not covered
by the same check.

So, where sync-irq could not be eliminated completely, the missing check
was added.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
22 files changed:
drivers/media/video/cx88/cx88-alsa.c
drivers/media/video/saa7134/saa7134-alsa.c
sound/pci/ad1889.c
sound/pci/ali5451/ali5451.c
sound/pci/atiixp.c
sound/pci/atiixp_modem.c
sound/pci/au88x0/au88x0.c
sound/pci/azt3328.c
sound/pci/cmipci.c
sound/pci/ens1370.c
sound/pci/es1938.c
sound/pci/es1968.c
sound/pci/hda/hda_intel.c
sound/pci/ice1712/ice1712.c
sound/pci/ice1712/ice1724.c
sound/pci/intel8x0.c
sound/pci/intel8x0m.c
sound/pci/maestro3.c
sound/pci/oxygen/oxygen_lib.c
sound/pci/sis7019.c
sound/pci/via82xx.c
sound/pci/via82xx_modem.c