rc2014: remove un-needed devmem drivers
authorAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 22:19:13 +0000 (23:19 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 22:19:13 +0000 (23:19 +0100)
Kernel/platform-rc2014/config.h
Kernel/platform-rc2014/devices.c

index e86f6fe..9db2b67 100644 (file)
@@ -73,18 +73,6 @@ extern unsigned int swap_dev;
 /* User mode uIP TCP/IP daemon */
 #define CONFIG_NET_NATIVE
 
-/* Device parameters */
-#define CONFIG_DEV_MEM          /* enable /dev/mem driver */
-
-#define CONFIG_RAMDISK          /* enable memory-backed disk driver */
-#define DEV_RD_ROM_PAGES 28     /* size of the ROM disk in 16KB pages (max 32, any unused pages are at the start of the ROM) */
-#define DEV_RD_RAM_PAGES 0      /* size of the RAM disk in 16KB pages */
-
-#define DEV_RD_ROM_START ((uint32_t)(32-DEV_RD_ROM_PAGES) << 14)        /* first byte used by the ROM disk */
-#define DEV_RD_RAM_START ((uint32_t)(64-DEV_RD_RAM_PAGES) << 14)        /* first byte used by the RAM disk */
-#define DEV_RD_ROM_SIZE  ((uint32_t)DEV_RD_ROM_PAGES << 14)             /* size of the ROM disk */
-#define DEV_RD_RAM_SIZE  ((uint32_t)DEV_RD_RAM_PAGES << 14)             /* size of the RAM disk */
-
 #define NUM_DEV_TTY 2
 
 
index fb6c9af..7b5a8fc 100644 (file)
@@ -27,11 +27,7 @@ struct devsw dev_tab[] =  /* The device driver switch table */
   /* 2: /dev/tty -- serial ports */
   {  tty_open,     tty_close,  tty_read,       tty_write,      tty_ioctl},
   /* 3: RAM disk */
-#ifdef CONFIG_RAMDISK
-  {  rd_open,      no_close,   rd_read,        rd_write,       no_ioctl},
-#else
   {  no_open,      no_close,   no_rdwr,        no_rdwr,        no_ioctl},
-#endif
   /* 4: /dev/mem etc      System devices (one offs) */
   {  no_open,      no_close,   sys_read,       sys_write,      sys_ioctl},
 };