Skip to content

Commit

Permalink
[SPARC64] power: Do not pass SA_SHIRQ to request_irq().
Browse files Browse the repository at this point in the history
This needs to be a unique interrupt source because we do
not have a register or similar to poll to make sure the
IRQ is really for us.  We do not have any dev_id to pass
in anyways, and the generic IRQ layer is now enforcing
that when SA_SHIRQ is specified, dev_id must be non-NULL.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 29, 2006
1 parent d44b3be commit 00cde67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void __devinit power_probe_common(struct of_device *dev, struct resource
printk("powerd running.\n");

if (request_irq(irq,
power_handler, SA_SHIRQ, "power", NULL) < 0)
power_handler, 0, "power", NULL) < 0)
printk("power: Error, cannot register IRQ handler.\n");
} else {
printk("not using powerd.\n");
Expand Down

0 comments on commit 00cde67

Please sign in to comment.