summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/landisk/dev/power.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/landisk/dev/power.c b/sys/arch/landisk/dev/power.c
index 4e1ad37ff1f..889acf50e04 100644
--- a/sys/arch/landisk/dev/power.c
+++ b/sys/arch/landisk/dev/power.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: power.c,v 1.3 2007/04/26 18:12:13 martin Exp $ */
+/* $OpenBSD: power.c,v 1.4 2007/06/15 18:17:25 miod Exp $ */
/*
* Copyright (c) 2007 Martin Reindl.
@@ -58,9 +58,12 @@ int
power_match(struct device *parent, void *match, void *aux)
{
struct obio_attach_args *oa = aux;
+ static struct obio_irq power_match_irq;
oa->oa_nio = 0;
oa->oa_niomem = 0;
+ if (oa->oa_nirq == 0)
+ oa->oa_irq = &power_match_irq;
oa->oa_nirq = 1;
oa->oa_irq[0].or_irq = LANDISK_INTR_PWRSW;