configs: Remove empty #ifdef/#ifndef blocks from configs
authorAlex Kiernan <alex.kiernan@gmail.com>
Sat, 2 Jun 2018 05:42:55 +0000 (05:42 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 10 Jul 2018 20:55:57 +0000 (16:55 -0400)
Remove empty #ifdef/#ifndef..#endif blocks where the configuration they
guarded has been completely removed.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
19 files changed:
arch/powerpc/include/asm/config.h
include/configs/MPC8610HPCD.h
include/configs/P1022DS.h
include/configs/T102xQDS.h
include/configs/T208xQDS.h
include/configs/UCP1020.h
include/configs/advantech_dms-ba16.h
include/configs/controlcenterd.h
include/configs/cyrus.h
include/configs/ea20.h
include/configs/ethernut5.h
include/configs/ge_bx50v3.h
include/configs/ipam390.h
include/configs/lacie_kw.h
include/configs/mx6ul_14x14_evk.h
include/configs/omapl138_lcdk.h
include/configs/sunxi-common.h
include/configs/tegra-common-post.h
include/configs/zynq-common.h

index 284cfe21ab04584ab73b9a845d8799f61229174d..bf11f40e23138ac322e383b5d7ce1207a4ecb78d 100644 (file)
@@ -14,9 +14,6 @@
 #include <asm/config_mpc86xx.h>
 #endif
 
-#ifdef CONFIG_MPC83xx
-#endif
-
 #ifndef HWCONFIG_BUFFER_SIZE
   #define HWCONFIG_BUFFER_SIZE 256
 #endif
index 24f9fca53c6024448ab361dfc36e2ff50f937a4d..ddfb241010ae33d0faae087143a38baa9dfb792f 100644 (file)
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup */
 
 #define CONFIG_ULI526X
-#ifdef CONFIG_ULI526X
-#endif
 
 /************************************************************
  * USB support
index 1b347541c08b5950db02978fb2b0368b4ae6cbca..63a4d12560ca19a156f3c17e020bf6c782a30315 100644 (file)
 #undef CONFIG_SYS_FLASH_EMPTY_INFO
 #endif
 
-#ifndef CONFIG_FSL_DIU_FB
-#endif
-
 #ifdef CONFIG_ATI
 #define VIDEO_IO_OFFSET                CONFIG_SYS_PCIE1_IO_VIRT
 #define CONFIG_BIOSEMU
index e457135e5692dc56a980bc4ac3d8b6f94a10e0e4..042cc360ad76743e9b726805f915f84c1036edbc 100644 (file)
@@ -515,8 +515,6 @@ unsigned long get_board_ddr_clk(void);
 /*
  * eSPI - Enhanced SPI
  */
-#ifndef CONFIG_SPL_BUILD
-#endif
 #define CONFIG_SPI_FLASH_BAR
 #define CONFIG_SF_DEFAULT_SPEED         10000000
 #define CONFIG_SF_DEFAULT_MODE   0
index f5d454b0028ca2d9059bb1315a39a2ff7a396417..ba7980a22d06790e28ce9ededeb805463be38c58 100644 (file)
@@ -509,8 +509,6 @@ unsigned long get_board_ddr_clk(void);
  * eSPI - Enhanced SPI
  */
 #ifdef CONFIG_SPI_FLASH
-#ifndef CONFIG_SPL_BUILD
-#endif
 
 #define CONFIG_SPI_FLASH_BAR
 #define CONFIG_SF_DEFAULT_SPEED         10000000
index b5ff5d3fe1817bc63bc9aebe97cfe49c808677ba..f5c647870fc03df600a6f717db753880d91ac4ed 100644 (file)
@@ -38,8 +38,6 @@
 #define CONFIG_NETMASK         255.255.252.0
 #define CONFIG_ETHPRIME                "eTSEC3"
 
-#ifndef CONFIG_SPI_FLASH
-#endif
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 
 #define CONFIG_SYS_L2_SIZE     (256 << 10)
index 8e33d38f97d81855edf4bde948edff35e9790a58..586e7a77cae631ed8008cc22175fdc4af4e3e083 100644 (file)
 #define CONFIG_ENV_SPI_MODE             CONFIG_SF_DEFAULT_MODE
 #define CONFIG_ENV_SPI_MAX_HZ           CONFIG_SF_DEFAULT_SPEED
 
-#ifndef CONFIG_SYS_DCACHE_OFF
-#endif
-
 #define CONFIG_SYS_FSL_USDHC_NUM        3
 
 /* Framebuffer */
index 1fe6f2fa5e2cfeb6a3c427ecec4fd521f5e0219d..e5bf048398789f54a8075cb65062538988e4d9ae 100644 (file)
 #define CONFIG_SYS_FSL_I2C2_SLAVE      0x7F
 #define CONFIG_SYS_FSL_I2C2_OFFSET     0x3100
 
-#ifndef CONFIG_TRAILBLAZER
-#endif
-
 #define CONFIG_PCA9698                 /* NXP PCA9698 */
 
 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x52
index 6ce2bc0042dd59443f1eb54f30d6d2054fbc03e0..0ce9a35f11d492e698dc6258d00f0d7cbdb316ef 100644 (file)
 
 #include <asm/fsl_secure_boot.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#endif
-
 #endif /* __CONFIG_H */
index c84cd962d7effbfd34274d29bebf602e7dc95b6d..ee122ad7a40378a9f0440a3a717a9f4657bd4083 100644 (file)
 #define CONFIG_CLOCKS
 #endif
 
-#ifndef CONFIG_DRIVER_TI_EMAC
-#endif
-
 /* NAND Setup */
 #ifdef CONFIG_SYS_USE_NAND
 #define CONFIG_MTD_DEVICE
 #define CONFIG_SYS_MAX_NAND_DEVICE     1 /* Max number of NAND devices */
 #endif
 
-/* SPI Flash */
-#ifdef CONFIG_USE_SPIFLASH
-#endif
-
 #if !defined(CONFIG_SYS_USE_NAND) && \
        !defined(CONFIG_USE_NOR) && \
        !defined(CONFIG_USE_SPIFLASH)
index ca5c65fe5aa41489d89006c5f2d86b7b4235ef3c..8913c1609c7f43e593bdfce9d017e3995031130f 100644 (file)
@@ -58,9 +58,6 @@
 #define CONFIG_ENV_SECT_SIZE   CONFIG_ENV_SIZE
 #define CONFIG_ENV_SPI_MAX_HZ  15000000
 
-#ifndef MINIMAL_LOADER
-#endif
-
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
 #define CONFIG_SYS_MAX_NAND_DEVICE     1
index 1b947db9d46585a074d234a6e5f9b886e3ce68c2..fef41a8a18877c8c7e9860054aa51f3687cf6e0b 100644 (file)
 #define CONFIG_ENV_SPI_MODE            CONFIG_SF_DEFAULT_MODE
 #define CONFIG_ENV_SPI_MAX_HZ          CONFIG_SF_DEFAULT_SPEED
 
-#ifndef CONFIG_SYS_DCACHE_OFF
-#endif
-
 #define CONFIG_SYS_FSL_USDHC_NUM       3
 
 /* Framebuffer */
index faf21ddb082180cb05a5a5f8b02163f37947e64e..08978fa6581eb1aafd24105612912ecb0d4f9fc8 100644 (file)
 #define CONFIG_CLOCKS
 #endif
 
-#ifndef CONFIG_DRIVER_TI_EMAC
-#endif
-
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 
index ac9ac4aeaa563c61252d1540f27bf08c1b1a68e4..8af8fd5c63be81aea39086105fc486c33ef7255c 100644 (file)
 #endif
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* disable board lowlevel_init */
 
-/*
- * Commands configuration
- */
-#ifndef CONFIG_NETSPACE_MINI_V2 /* No USB ports on Network Space v2 Mini */
-#endif
-
 /*
  * Core clock definition
  */
index 31305aab1bea5292b37b96bed1914962dca5d5c6..da2a67fc211b43a24957c3c22e9f1b25819b6f5f 100644 (file)
 #define CONFIG_SYS_MMC_ENV_PART                0       /* user area */
 #define CONFIG_MMCROOT                 "/dev/mmcblk1p2"  /* USDHC2 */
 
-#ifndef CONFIG_SYS_DCACHE_OFF
-#endif
-
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_SF_DEFAULT_BUS          0
 #define CONFIG_SF_DEFAULT_CS           0
index 58624ec581e3dff392dee8a841283b5b84f65ef8..879c8a0cffacde5d92b3e788324a95ef6f0317ab 100644 (file)
 #define CONFIG_CLOCKS
 #endif
 
-#ifndef CONFIG_DRIVER_TI_EMAC
-#endif
-
 #ifdef CONFIG_USE_NAND
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
index b515e9bb1ff80066e17e83bb41a7308ba96ee7ea..21371f4919f3ae8b38d0127b82cde318254b0754 100644 (file)
@@ -301,9 +301,6 @@ extern int soft_i2c_gpio_scl;
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
 #endif
 
-#ifdef CONFIG_USB_FUNCTION_MASS_STORAGE
-#endif
-
 #ifdef CONFIG_USB_KEYBOARD
 #define CONFIG_PREBOOT
 #endif
index 1c0046ac0d0aa0cfd20da79cf3fc6d9382442871..e54428ba43e202acdd8a363874c1bbd4f4feb65b 100644 (file)
 #ifdef CONFIG_SYS_I2C_TEGRA
 #undef CONFIG_SYS_I2C_TEGRA
 #endif
-#ifdef CONFIG_CMD_I2C
-#endif
 
 /* remove USB */
 #ifdef CONFIG_USB_EHCI_TEGRA
 #undef CONFIG_USB_EHCI_TEGRA
 #endif
-#ifdef CONFIG_CMD_USB
-#endif
 
 #endif /* CONFIG_SPL_BUILD */
 
index 55b983fc16ea032c85ef8abc73b07eb0363ddb61..a6f2aceea1def75f60e32637874bf9d3bbc0bd09 100644 (file)
 # define CONFIG_BOOTP_MAY_FAIL
 #endif
 
-/* SPI */
-#ifdef CONFIG_ZYNQ_SPI
-#endif
-
 /* QSPI */
 #ifdef CONFIG_ZYNQ_QSPI
 # define CONFIG_SF_DEFAULT_SPEED       30000000