Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100299
b: refs/heads/master
c: c43ef17
h: refs/heads/master
i:
  100297: 331b5bf
  100295: 1250fcf
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 4ec4fa0 commit 26d3e0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78a3c3d7c6b89085610edfe86f7790144afc737e
refs/heads/master: c43ef17450dce8cbf50f97497a1949ff8f484e88
5 changes: 4 additions & 1 deletion trunk/drivers/char/snsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/poll.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <asm/sn/io.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/module.h>
Expand Down Expand Up @@ -104,16 +105,18 @@ scdrv_open(struct inode *inode, struct file *file)
file->private_data = sd;

/* hook this subchannel up to the system controller interrupt */
lock_kernel();
rv = request_irq(SGI_UART_VECTOR, scdrv_interrupt,
IRQF_SHARED | IRQF_DISABLED,
SYSCTL_BASENAME, sd);
if (rv) {
ia64_sn_irtr_close(sd->sd_nasid, sd->sd_subch);
kfree(sd);
printk("%s: irq request failed (%d)\n", __func__, rv);
unlock_kernel();
return -EBUSY;
}

unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 26d3e0d

Please sign in to comment.