X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fblock%2Famiflop.c;h=1468e8cf712d501ec69ca8aea740e8567776b50d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=62e3a7ed3f60f4141a2ea13322feabb3aafb0952;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 62e3a7ed3..1468e8cf7 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c @@ -105,9 +105,9 @@ #define FD_HD_3 0x55555555 /* high-density 3.5" (1760K) drive */ #define FD_DD_5 0xaaaaaaaa /* double-density 5.25" (440K) drive */ -static long int fd_def_df0 = FD_DD_3; /* default for df0 if it doesn't identify */ +static unsigned long int fd_def_df0 = FD_DD_3; /* default for df0 if it doesn't identify */ -MODULE_PARM(fd_def_df0,"l"); +module_param(fd_def_df0, ulong, 0); MODULE_LICENSE("GPL"); static struct request_queue *floppy_queue; @@ -163,7 +163,7 @@ static int writepending; static int writefromint; static char *raw_buf; -static spinlock_t amiflop_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(amiflop_lock); #define RAW_BUF_SIZE 30000 /* size of raw disk data */