2011-01-04 17:20:42 +00:00
|
|
|
From f4498e0b2c8f68d4ce4189d41da77c2dd7a14e9d Mon Sep 17 00:00:00 2001
|
2010-10-26 08:31:54 +00:00
|
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Date: Sat, 18 Sep 2010 09:40:01 +0400
|
2011-01-04 17:20:42 +00:00
|
|
|
Subject: [PATCH 06/13] Kill some x86-related ifdefs in code - this is now controlled via autotools
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
---
|
|
|
|
ichspi.c | 4 ----
|
|
|
|
it87spi.c | 4 ----
|
|
|
|
mcp6x_spi.c | 4 ----
|
|
|
|
nic3com.c | 6 ------
|
|
|
|
nicnatsemi.c | 6 ------
|
|
|
|
nicrealtek.c | 6 ------
|
|
|
|
rayer_spi.c | 5 -----
|
|
|
|
sb600spi.c | 4 ----
|
|
|
|
wbsio_spi.c | 4 ----
|
|
|
|
9 files changed, 0 insertions(+), 43 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/ichspi.c b/ichspi.c
|
2011-01-04 17:20:42 +00:00
|
|
|
index a087a0b..ea77361 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/ichspi.c
|
|
|
|
+++ b/ichspi.c
|
|
|
|
@@ -34,8 +34,6 @@
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <string.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "chipdrivers.h"
|
2011-01-04 17:20:42 +00:00
|
|
|
@@ -1173,5 +1171,3 @@ int via_init_spi(struct pci_dev *dev)
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/it87spi.c b/it87spi.c
|
2011-01-04 17:20:42 +00:00
|
|
|
index fb1448a..c0f73e3 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/it87spi.c
|
|
|
|
+++ b/it87spi.c
|
|
|
|
@@ -23,8 +23,6 @@
|
|
|
|
* Contains the ITE IT87* SPI specific routines
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
2011-01-04 17:20:42 +00:00
|
|
|
@@ -374,5 +372,3 @@ int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start,
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/mcp6x_spi.c b/mcp6x_spi.c
|
|
|
|
index 0e0d311..d9bb893 100644
|
|
|
|
--- a/mcp6x_spi.c
|
|
|
|
+++ b/mcp6x_spi.c
|
|
|
|
@@ -23,8 +23,6 @@
|
|
|
|
* created by Michael Karcher.
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "flash.h"
|
|
|
|
@@ -171,5 +169,3 @@ int mcp6x_spi_init(int want_spi)
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/nic3com.c b/nic3com.c
|
|
|
|
index 0eb781a..7084edf 100644
|
|
|
|
--- a/nic3com.c
|
|
|
|
+++ b/nic3com.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
|
|
|
@@ -114,7 +112,3 @@ uint8_t nic3com_chip_readb(const chipaddr addr)
|
|
|
|
OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
|
|
|
|
return INB(io_base_addr + BIOS_ROM_DATA);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
|
|
|
-#endif
|
|
|
|
diff --git a/nicnatsemi.c b/nicnatsemi.c
|
|
|
|
index 1683857..e3a2807 100644
|
|
|
|
--- a/nicnatsemi.c
|
|
|
|
+++ b/nicnatsemi.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
|
|
|
@@ -89,7 +87,3 @@ uint8_t nicnatsemi_chip_readb(const chipaddr addr)
|
|
|
|
*/
|
|
|
|
return INB(io_base_addr + BOOT_ROM_DATA);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
|
|
|
-#endif
|
|
|
|
diff --git a/nicrealtek.c b/nicrealtek.c
|
|
|
|
index c32e5d6..b5bcbaf 100644
|
|
|
|
--- a/nicrealtek.c
|
|
|
|
+++ b/nicrealtek.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
|
|
|
@@ -109,7 +107,3 @@ uint8_t nicrealtek_chip_readb(const chipaddr addr)
|
|
|
|
|
|
|
|
return val;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#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 a01ee80..e64137b 100644
|
|
|
|
--- a/rayer_spi.c
|
|
|
|
+++ b/rayer_spi.c
|
|
|
|
@@ -28,7 +28,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 "flash.h"
|
|
|
|
@@ -139,7 +138,3 @@ int rayer_spi_init(void)
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
|
|
|
-#endif
|
|
|
|
diff --git a/sb600spi.c b/sb600spi.c
|
|
|
|
index 4e3e079..c468ca3 100644
|
|
|
|
--- a/sb600spi.c
|
|
|
|
+++ b/sb600spi.c
|
|
|
|
@@ -21,8 +21,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include "flash.h"
|
|
|
|
#include "chipdrivers.h"
|
|
|
|
#include "programmer.h"
|
|
|
|
@@ -319,5 +317,3 @@ int sb600_probe_spi(struct pci_dev *dev)
|
|
|
|
spi_controller = SPI_CONTROLLER_SB600;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/wbsio_spi.c b/wbsio_spi.c
|
|
|
|
index acf9cb2..1a583a8 100644
|
|
|
|
--- a/wbsio_spi.c
|
|
|
|
+++ b/wbsio_spi.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include "flash.h"
|
|
|
|
#include "chipdrivers.h"
|
|
|
|
#include "programmer.h"
|
|
|
|
@@ -185,5 +183,3 @@ int wbsio_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len)
|
|
|
|
{
|
|
|
|
return read_memmapped(flash, buf, start, len);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
--
|
2011-01-04 17:20:42 +00:00
|
|
|
1.7.3.4
|
2010-10-26 08:31:54 +00:00
|
|
|
|