linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / cris / arch-v10 / drivers / gpio.c
index fcba663..09963fe 100644 (file)
  *
  */
 
+#include <linux/config.h>
 
 #include <linux/module.h>
 #include <linux/sched.h>
@@ -435,7 +436,7 @@ static int
 gpio_open(struct inode *inode, struct file *filp)
 {
        struct gpio_private *priv;
-       int p = iminor(inode);
+       int p = MINOR(inode->i_rdev);
 
        if (p > GPIO_MINOR_LAST)
                return -EINVAL;
@@ -937,11 +938,11 @@ gpio_init(void)
         * in some tests.
         */  
        if (request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
-                       IRQF_SHARED | IRQF_DISABLED,"gpio poll", NULL)) {
+                       SA_SHIRQ | SA_INTERRUPT,"gpio poll", NULL)) {
                printk(KERN_CRIT "err: timer0 irq for gpio\n");
        }
        if (request_irq(PA_IRQ_NBR, gpio_pa_interrupt,
-                       IRQF_SHARED | IRQF_DISABLED,"gpio PA", NULL)) {
+                       SA_SHIRQ | SA_INTERRUPT,"gpio PA", NULL)) {
                printk(KERN_CRIT "err: PA irq for gpio\n");
        }