提交 754d0f23 编写于 作者: R Ralf Baechle

[MIPS] IP22: Complain if requesting the front panel irq failed.

This fixes the warning:

  CC      arch/mips/sgi-ip22/ip22-reset.o
arch/mips/sgi-ip22/ip22-reset.c: In function 'reboot_setup':
arch/mips/sgi-ip22/ip22-reset.c:239: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 f70fd1b5
...@@ -232,11 +232,18 @@ static struct notifier_block panic_block = { ...@@ -232,11 +232,18 @@ static struct notifier_block panic_block = {
static int __init reboot_setup(void) static int __init reboot_setup(void)
{ {
int res;
_machine_restart = sgi_machine_restart; _machine_restart = sgi_machine_restart;
_machine_halt = sgi_machine_halt; _machine_halt = sgi_machine_halt;
pm_power_off = sgi_machine_power_off; pm_power_off = sgi_machine_power_off;
request_irq(SGI_PANEL_IRQ, panel_int, 0, "Front Panel", NULL); res = request_irq(SGI_PANEL_IRQ, panel_int, 0, "Front Panel", NULL);
if (res) {
printk(KERN_ERR "Allocation of front panel IRQ failed\n");
return res;
}
init_timer(&blink_timer); init_timer(&blink_timer);
blink_timer.function = blink_timeout; blink_timer.function = blink_timeout;
atomic_notifier_chain_register(&panic_notifier_list, &panic_block); atomic_notifier_chain_register(&panic_notifier_list, &panic_block);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册