]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/cdrom/optcd.c
[PATCH] x86: Allow disabling early pci scans with pci=noearly or disallowing conf1
[linux-2.6-omap-h63xx.git] / drivers / cdrom / optcd.c
index 351a01dd503a3ceea3073f0c6dd31acd82e4c70f..25032d7edc55e19a3f63a8e3dfd92a70ddca767c 100644 (file)
@@ -264,7 +264,7 @@ static inline int flag_low(int flag, unsigned long timeout)
 static int sleep_timeout;      /* max # of ticks to sleep */
 static DECLARE_WAIT_QUEUE_HEAD(waitq);
 static void sleep_timer(unsigned long data);
-static struct timer_list delay_timer = TIMER_INITIALIZER(sleep_timer, 0, 0);
+static DEFINE_TIMER(delay_timer, sleep_timer, 0, 0);
 static DEFINE_SPINLOCK(optcd_lock);
 static struct request_queue *opt_queue;
 
@@ -2033,7 +2033,6 @@ static int __init optcd_init(void)
        optcd_disk->first_minor = 0;
        optcd_disk->fops = &opt_fops;
        sprintf(optcd_disk->disk_name, "optcd");
-       sprintf(optcd_disk->devfs_name, "optcd");
 
        if (!request_region(optcd_port, 4, "optcd")) {
                printk(KERN_ERR "optcd: conflict, I/O port 0x%x already used\n",