summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amd_imc.c4
-rw-r--r--atahpt.c6
-rw-r--r--atapromise.c6
-rw-r--r--ft2232_spi.c3
-rw-r--r--ichspi.c4
-rw-r--r--it85spi.c4
-rw-r--r--it87spi.c4
-rw-r--r--linux_spi.c4
-rw-r--r--mcp6x_spi.c4
-rw-r--r--mstarddc_spi.c4
-rw-r--r--nic3com.c6
-rw-r--r--nicnatsemi.c6
-rw-r--r--nicrealtek.c6
-rw-r--r--rayer_spi.c5
-rw-r--r--satamv.c5
-rw-r--r--sb600spi.c4
-rw-r--r--usbblaster_spi.c4
-rw-r--r--wbsio_spi.c4
18 files changed, 0 insertions, 83 deletions
diff --git a/amd_imc.c b/amd_imc.c
index 8b0bcf2f5..a3959e63f 100644
--- a/amd_imc.c
+++ b/amd_imc.c
@@ -15,8 +15,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
@@ -151,5 +149,3 @@ int amd_imc_shutdown(struct pci_dev *dev)
return ret;
}
-
-#endif
diff --git a/atahpt.c b/atahpt.c
index c627e0b72..d9b56bc41 100644
--- a/atahpt.c
+++ b/atahpt.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include <string.h>
#include "flash.h"
@@ -97,7 +95,3 @@ const struct programmer_entry programmer_atahpt = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/atapromise.c b/atapromise.c
index e3009e423..0c187e3cf 100644
--- a/atapromise.c
+++ b/atapromise.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <string.h>
#include <stdlib.h>
#include "flash.h"
@@ -170,7 +168,3 @@ const struct programmer_entry programmer_atapromise = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 15837d928..0962f1c10 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if CONFIG_FT2232_SPI == 1
-
#include <stdio.h>
#include <strings.h>
#include <string.h>
@@ -599,4 +597,3 @@ const struct programmer_entry programmer_ft2232_spi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-#endif
diff --git a/ichspi.c b/ichspi.c
index 091e4e200..d345af2c7 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -19,8 +19,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <string.h>
#include <stdlib.h>
#include "flash.h"
@@ -2113,5 +2111,3 @@ int via_init_spi(uint32_t mmio_base)
return 0;
}
-
-#endif
diff --git a/it85spi.c b/it85spi.c
index dd0cb6c00..17e4e109d 100644
--- a/it85spi.c
+++ b/it85spi.c
@@ -20,8 +20,6 @@
* Contains the ITE IT85* SPI specific routines
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -362,5 +360,3 @@ int it85xx_spi_init(struct superio s)
/* Set this as SPI controller. */
return register_spi_master(&spi_master_it85xx, data);
}
-
-#endif
diff --git a/it87spi.c b/it87spi.c
index 3e422d7df..5f6fb6599 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -19,8 +19,6 @@
* Contains the ITE IT87* SPI specific routines
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@@ -464,5 +462,3 @@ int init_superio_ite(void)
}
return ret;
}
-
-#endif /* defined(__i386__) || defined(__x86_64__) */
diff --git a/linux_spi.c b/linux_spi.c
index bd9ffb360..27a9a0dba 100644
--- a/linux_spi.c
+++ b/linux_spi.c
@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
-#if CONFIG_LINUX_SPI == 1
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -256,5 +254,3 @@ const struct programmer_entry programmer_linux_spi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#endif // CONFIG_LINUX_SPI == 1
diff --git a/mcp6x_spi.c b/mcp6x_spi.c
index fa309ca3c..29d26634b 100644
--- a/mcp6x_spi.c
+++ b/mcp6x_spi.c
@@ -19,8 +19,6 @@
* created by Michael Karcher.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include <ctype.h>
#include "flash.h"
@@ -192,5 +190,3 @@ int mcp6x_spi_init(int want_spi)
return 0;
}
-
-#endif
diff --git a/mstarddc_spi.c b/mstarddc_spi.c
index 8e2d5a86c..71b02c0bb 100644
--- a/mstarddc_spi.c
+++ b/mstarddc_spi.c
@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
-#if CONFIG_MSTARDDC_SPI == 1
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -259,5 +257,3 @@ const struct programmer_entry programmer_mstarddc_spi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#endif
diff --git a/nic3com.c b/nic3com.c
index 2af0a52df..79964ac86 100644
--- a/nic3com.c
+++ b/nic3com.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
@@ -173,7 +171,3 @@ const struct programmer_entry programmer_nic3com = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/nicnatsemi.c b/nicnatsemi.c
index b2f381a33..621672817 100644
--- a/nicnatsemi.c
+++ b/nicnatsemi.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
@@ -110,7 +108,3 @@ const struct programmer_entry programmer_nicnatsemi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/nicrealtek.c b/nicrealtek.c
index ec821b4f8..70daeec06 100644
--- a/nicrealtek.c
+++ b/nicrealtek.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
@@ -151,7 +149,3 @@ const struct programmer_entry programmer_nicrealtek = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/rayer_spi.c b/rayer_spi.c
index 1102ff158..e65eb78d0 100644
--- a/rayer_spi.c
+++ b/rayer_spi.c
@@ -22,7 +22,6 @@
* most OS parport drivers will perform many unnecessary accesses although
* this driver just treats the parallel port as a GPIO set.
*/
-#if defined(__i386__) || defined(__x86_64__)
#include <stdlib.h>
#include <strings.h>
@@ -334,7 +333,3 @@ const struct programmer_entry programmer_rayer_spi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/satamv.c b/satamv.c
index 32ac11a32..cdd2f2754 100644
--- a/satamv.c
+++ b/satamv.c
@@ -15,7 +15,6 @@
*/
/* Datasheets are not public (yet?) */
-#if defined(__i386__) || defined(__x86_64__)
#include <stdlib.h>
#include "flash.h"
@@ -191,7 +190,3 @@ const struct programmer_entry programmer_satamv = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#else
-#error PCI port I/O access is not supported on this architecture yet.
-#endif
diff --git a/sb600spi.c b/sb600spi.c
index fe7920fb4..7fa01afb3 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -18,8 +18,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <string.h>
#include <stdlib.h>
#include "flash.h"
@@ -799,5 +797,3 @@ int sb600_probe_spi(struct pci_dev *dev)
return 0;
}
-
-#endif
diff --git a/usbblaster_spi.c b/usbblaster_spi.c
index bd4b1c920..8957df87b 100644
--- a/usbblaster_spi.c
+++ b/usbblaster_spi.c
@@ -30,8 +30,6 @@
* See also the USB-Blaster Download Cable User Guide: http://www.altera.com/literature/ug/ug_usb_blstr.pdf
*/
-#if CONFIG_USBBLASTER_SPI == 1
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -237,5 +235,3 @@ const struct programmer_entry programmer_usbblaster_spi = {
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
};
-
-#endif
diff --git a/wbsio_spi.c b/wbsio_spi.c
index a175b2166..60b725f19 100644
--- a/wbsio_spi.c
+++ b/wbsio_spi.c
@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
-#if defined(__i386__) || defined(__x86_64__)
-
#include <stdlib.h>
#include "flash.h"
@@ -217,5 +215,3 @@ int wbsio_check_for_spi(void)
return register_spi_master(&spi_master_wbsio, data);
}
-
-#endif /* defined(__i386__) || defined(__x86_64__) */