X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fchar%2Ftlclk.c;fp=drivers%2Fchar%2Ftlclk.c;h=f58ad7f6826738846e606aab135161b92cc83dcc;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=d2c5ba4e83b8bcdada44f028b0dfe9dd93952222;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c index d2c5ba4e8..f58ad7f68 100644 --- a/drivers/char/tlclk.c +++ b/drivers/char/tlclk.c @@ -27,6 +27,7 @@ * MPCBL0010 ATCA computer. */ +#include #include #include #include @@ -208,7 +209,7 @@ static int tlclk_open(struct inode *inode, struct file *filp) /* This device is wired through the FPGA IO space of the ATCA blade * we can't share this IRQ */ result = request_irq(telclk_interrupt, &tlclk_interrupt, - IRQF_DISABLED, "telco_clock", tlclk_interrupt); + SA_INTERRUPT, "telco_clock", tlclk_interrupt); if (result == -EBUSY) { printk(KERN_ERR "tlclk: Interrupt can't be reserved.\n"); return -EBUSY; @@ -247,7 +248,7 @@ static ssize_t tlclk_write(struct file *filp, const char __user *buf, size_t cou return 0; } -static const struct file_operations tlclk_fops = { +static struct file_operations tlclk_fops = { .read = tlclk_read, .write = tlclk_write, .open = tlclk_open, @@ -342,7 +343,7 @@ static ssize_t store_received_ref_clk3b(struct device *d, val = (unsigned char)tmp; spin_lock_irqsave(&event_lock, flags); - SET_PORT_BITS(TLCLK_REG1, 0xdf, val << 1); + SET_PORT_BITS(TLCLK_REG1, 0xef, val << 1); spin_unlock_irqrestore(&event_lock, flags); return strnlen(buf, count);