]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/therm_pm72.c
[PATCH] v4l: (937) Included missing interrupt.h at saa7134-alsa.c
[linux-2.6-omap-h63xx.git] / drivers / macintosh / therm_pm72.c
index 703e3197331471dada2210e3c2ff9ddd471e2278..3fc8cdd94c3daa9b4154b8d721b381bb0eb09797 100644 (file)
@@ -1678,10 +1678,9 @@ static int main_control_loop(void *x)
                }
 
                // FIXME: Deal with signals
-               set_current_state(TASK_INTERRUPTIBLE);
                elapsed = jiffies - start;
                if (elapsed < HZ)
-                       schedule_timeout(HZ - elapsed);
+                       schedule_timeout_interruptible(HZ - elapsed);
        }
 
  out:
@@ -2051,7 +2050,7 @@ static int __init therm_pm72_init(void)
                            return -ENODEV;
                }
        }
-       of_dev = of_platform_device_create(np, "temperature");
+       of_dev = of_platform_device_create(np, "temperature", NULL);
        if (of_dev == NULL) {
                printk(KERN_ERR "Can't register FCU platform device !\n");
                return -ENODEV;