aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/kernel/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c
index 8cb3358674f5..c72795666a62 100644
--- a/arch/sparc64/kernel/irq.c
+++ b/arch/sparc64/kernel/irq.c
@@ -701,10 +701,10 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino)
701{ 701{
702 unsigned long sysino, hv_err; 702 unsigned long sysino, hv_err;
703 703
704 BUG_ON(devhandle & ~IMAP_IGN); 704 BUG_ON(devhandle & devino);
705 BUG_ON(devino & ~IMAP_INO);
706 705
707 sysino = devhandle | devino; 706 sysino = devhandle | devino;
707 BUG_ON(sysino & ~(IMAP_IGN | IMAP_INO));
708 708
709 hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino); 709 hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino);
710 if (hv_err) { 710 if (hv_err) {