diff --git a/arch/arm/src/cxd56xx/cxd56_sfc.c b/arch/arm/src/cxd56xx/cxd56_sfc.c index 19dec4e9cd..856a94a3c1 100644 --- a/arch/arm/src/cxd56xx/cxd56_sfc.c +++ b/arch/arm/src/cxd56xx/cxd56_sfc.c @@ -229,7 +229,6 @@ static int cxd56_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/arch/arm/src/lpc43xx/lpc43_spifi.c b/arch/arm/src/lpc43xx/lpc43_spifi.c index cbc29056a8..206fb8fa22 100644 --- a/arch/arm/src/lpc43xx/lpc43_spifi.c +++ b/arch/arm/src/lpc43xx/lpc43_spifi.c @@ -904,7 +904,6 @@ static int lpc43_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/arch/risc-v/src/bl602/bl602_spiflash.c b/arch/risc-v/src/bl602/bl602_spiflash.c index 3aef8f11ce..9a146752d5 100644 --- a/arch/risc-v/src/bl602/bl602_spiflash.c +++ b/arch/risc-v/src/bl602/bl602_spiflash.c @@ -308,26 +308,6 @@ int bl602_ioctl(FAR struct mtd_dev_s *dev, int cmd, } } break; - case MTDIOC_BULKERASE: - { - /* Erase the entire partition */ - - finfo("cmd(0x%x) MTDIOC_BULKERASE not support.\n", cmd); - } - break; - case MTDIOC_XIPBASE: - { - /* Get the XIP base of the entire FLASH */ - - finfo("cmd(0x%x) MTDIOC_XIPBASE not support.\n", cmd); - } - break; - case MTDIOC_FLUSH: - { - finfo("cmd(0x%x) MTDIOC_FLUSH.\n", cmd); - ret = OK; - } - break; default: { finfo("cmd(0x%x) not support.\n", cmd); diff --git a/drivers/mtd/at24xx.c b/drivers/mtd/at24xx.c index 9823e0cbd0..b7852c78ae 100644 --- a/drivers/mtd/at24xx.c +++ b/drivers/mtd/at24xx.c @@ -643,7 +643,6 @@ static int at24c_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) break; #endif - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/at25.c b/drivers/mtd/at25.c index 7316d793ae..98425f6731 100644 --- a/drivers/mtd/at25.c +++ b/drivers/mtd/at25.c @@ -649,7 +649,6 @@ static int at25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/at45db.c b/drivers/mtd/at45db.c index 3215b7ab04..6166537ef1 100644 --- a/drivers/mtd/at45db.c +++ b/drivers/mtd/at45db.c @@ -822,7 +822,6 @@ static int at45db_ioctl(FAR struct mtd_dev_s *mtd, } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/filemtd.c b/drivers/mtd/filemtd.c index a25ba1a7e1..f1e3fc9b88 100644 --- a/drivers/mtd/filemtd.c +++ b/drivers/mtd/filemtd.c @@ -436,10 +436,6 @@ static int filemtd_ioctl(FAR struct mtd_dev_s *dev, int cmd, } break; - case MTDIOC_XIPBASE: - ret = -ENOTTY; /* Bad command */ - break; - case MTDIOC_BULKERASE: { /* Erase the entire device */ diff --git a/drivers/mtd/gd25.c b/drivers/mtd/gd25.c index 59289fae5e..ee7879b545 100644 --- a/drivers/mtd/gd25.c +++ b/drivers/mtd/gd25.c @@ -966,7 +966,6 @@ static int gd25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; break; diff --git a/drivers/mtd/is25xp.c b/drivers/mtd/is25xp.c index 0dc71dda65..d327a7c0e8 100644 --- a/drivers/mtd/is25xp.c +++ b/drivers/mtd/is25xp.c @@ -964,7 +964,6 @@ static int is25xp_ioctl(FAR struct mtd_dev_s *dev, } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/m25px.c b/drivers/mtd/m25px.c index 047a8e3e30..e19b0c989e 100644 --- a/drivers/mtd/m25px.c +++ b/drivers/mtd/m25px.c @@ -1046,7 +1046,6 @@ static int m25p_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/mtd_nand.c b/drivers/mtd/mtd_nand.c index 008420df82..e46d8cfc81 100644 --- a/drivers/mtd/mtd_nand.c +++ b/drivers/mtd/mtd_nand.c @@ -814,7 +814,6 @@ static int nand_ioctl(struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/mtd_rwbuffer.c b/drivers/mtd/mtd_rwbuffer.c index eb80d776ac..72ad1b6418 100644 --- a/drivers/mtd/mtd_rwbuffer.c +++ b/drivers/mtd/mtd_rwbuffer.c @@ -317,7 +317,6 @@ static int mtd_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/mx25lx.c b/drivers/mtd/mx25lx.c index 7ecca96b94..52f700bab1 100644 --- a/drivers/mtd/mx25lx.c +++ b/drivers/mtd/mx25lx.c @@ -1102,7 +1102,6 @@ static int mx25l_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/ramtron.c b/drivers/mtd/ramtron.c index 0e220a2d9a..a06b73c27f 100644 --- a/drivers/mtd/ramtron.c +++ b/drivers/mtd/ramtron.c @@ -973,7 +973,6 @@ static int ramtron_ioctl(FAR struct mtd_dev_s *dev, break; #endif - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/sector512.c b/drivers/mtd/sector512.c index cad2b82527..0322b1b0aa 100644 --- a/drivers/mtd/sector512.c +++ b/drivers/mtd/sector512.c @@ -566,7 +566,6 @@ static int s512_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/sst25.c b/drivers/mtd/sst25.c index 4e03389bbe..48905da762 100644 --- a/drivers/mtd/sst25.c +++ b/drivers/mtd/sst25.c @@ -1214,7 +1214,6 @@ static int sst25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/sst25xx.c b/drivers/mtd/sst25xx.c index a1ac3c28ac..eb0c88cc80 100644 --- a/drivers/mtd/sst25xx.c +++ b/drivers/mtd/sst25xx.c @@ -903,7 +903,6 @@ static int sst25xx_ioctl(FAR struct mtd_dev_s *dev, int cmd, } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/sst26.c b/drivers/mtd/sst26.c index 11ebdcb18b..ddff19f26a 100644 --- a/drivers/mtd/sst26.c +++ b/drivers/mtd/sst26.c @@ -908,7 +908,6 @@ static int sst26_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break; diff --git a/drivers/mtd/w25.c b/drivers/mtd/w25.c index 4edc64fd02..44ac3cab16 100644 --- a/drivers/mtd/w25.c +++ b/drivers/mtd/w25.c @@ -1342,7 +1342,6 @@ static int w25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } break; - case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ break;