vserver 1.9.5.x5
[linux-2.6.git] / drivers / cdrom / optcd.c
index caaeb72..7e69c54 100644 (file)
@@ -116,7 +116,7 @@ static void debug(int debug_this, const char* fmt, ...)
 
 #define optcd_port optcd                       /* Needed for the modutils. */
 static short optcd_port = OPTCD_PORTBASE;      /* I/O base of drive. */
-MODULE_PARM(optcd_port, "h");
+module_param(optcd_port, short, 0);
 /* Drive registers, read */
 #define DATA_PORT      optcd_port      /* Read data/status */
 #define STATUS_PORT    optcd_port+1    /* Indicate data/status availability */
@@ -265,7 +265,7 @@ 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 spinlock_t optcd_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(optcd_lock);
 static struct request_queue *opt_queue;
 
 /* Timer routine: wake up when desired flag goes low,