]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, hpet: Fix bogus error check in hpet_assign_irq()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 28 Sep 2010 21:20:23 +0000 (23:20 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:10 +0000 (18:08 -0500)
commitfe33925def4a525302acb8fda2fdd85fd6ef9329
tree3c5ad8faec1e155ab29006419e942f8ca9298292
parenta182c5219f8ab1fffd3947b57999f10f8852ca2b
x86, hpet: Fix bogus error check in hpet_assign_irq()

commit 021989622810b02aab4b24f91e1f5ada2b654579 upstream.

create_irq() returns -1 if the interrupt allocation failed, but the
code checks for irq == 0.

Use create_irq_nr() instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Venkatesh Pallipadi <venki@google.com>
LKML-Reference: <alpine.LFD.2.00.1009282310360.2416@localhost6.localdomain6>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/kernel/hpet.c