patch-2.1.94 linux/drivers/acorn/block/mfmhd.c

Next file: linux/drivers/acorn/net/ether1.c
Previous file: linux/drivers/acorn/block/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.93/linux/drivers/acorn/block/mfmhd.c linux/drivers/acorn/block/mfmhd.c
@@ -85,6 +85,8 @@
  *		card slots if someone tries this)!
  *
  * 17/1/97:RMK:	Upgraded to 2.1 kernels.
+ *
+ *  4/3/98:RMK:	Changed major number to 21.
  */
 
 /*
@@ -108,6 +110,9 @@
 #include <linux/major.h>
 #include <linux/ioport.h>
 
+#define MAJOR_NR	MFM_ACORN_MAJOR
+#include <linux/blk.h>
+
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/irq-no.h>
@@ -117,12 +122,6 @@
 #include <asm/hardware.h>
 #include <asm/ecard.h>
 
-#define MFM_DISK_MAJOR	13
-#undef  XT_DISK_MAJOR
-#define XT_DISK_MAJOR	-1
-#define MAJOR_NR	MFM_DISK_MAJOR
-#include "blk.h"
-
 /*
  * This sort of stuff should be in a header file shared with ide.c, hd.c, xd.c etc
  */
@@ -231,9 +230,6 @@
 static void mfm_specify (void);
 static void issue_request(int dev, unsigned int block, unsigned int nsect,
 			  struct request *req);
-
-#define mfm_init xd_init
-#define mfm_setup xd_setup
 
 static unsigned int mfm_addr;		/* Controller address */
 static unsigned int mfm_IRQPollLoc;	/* Address to read for IRQ information */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov