trs80: swap hd and fd over
authorAlan Cox <alan@linux.intel.com>
Fri, 15 May 2015 23:33:52 +0000 (00:33 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 15 May 2015 23:33:52 +0000 (00:33 +0100)
Somewhere along the line convention appears to have ended up that the block
generics are device 0 (in effect hd and sd devices). Make trs80 follow the
pattern. Conveniently this also means hitting return boots off hd which is
nice.

Kernel/platform-trs80/devices.c

index f633f8f..ad1b01f 100644 (file)
 
 struct devsw dev_tab[] =  /* The device driver switch table */
 {
-  /* 0: /dev/fd                Floppy disc block devices */
-  {  fd_open,     no_close,     fd_read,   fd_write,   no_ioctl  },
-  /* 1: /dev/hd                Hard disc block devices */
+  /* 0: /dev/hd                Hard disc block devices */
   {  hd_open,     no_close,     hd_read,   hd_write,   no_ioctl  },
+  /* 1: /dev/fd                Floppy disc block devices */
+  {  fd_open,     no_close,     fd_read,   fd_write,   no_ioctl  },
   /* 2: /dev/tty       TTY devices */
   {  tty_open,    trstty_close, tty_read,  tty_write,  gfx_ioctl },
   /* 3: /dev/lpr       Printer devices */