staging: goldfish: Call free_irq in error path
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Tue, 8 Apr 2014 06:15:22 +0000 (09:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 18:41:44 +0000 (11:41 -0700)
commitff8ebe6448e98df59a8c7e7e93876f8f3d6a8b19
tree46fb35b16877afd5c1d2fe1a7219c21b97a4b545
parent5ed0a8e667090003fdf7b750296fcfb248349502
staging: goldfish: Call free_irq in error path

If misc_register failed in goldfish_audio_probe, the already requested
IRQ wouldn't get freed. Add a call to free_irq() like there is in
goldfish_audio_remove().

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/goldfish/goldfish_audio.c