Commit 76244ca6 authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr] disable certain drivers that are broken on 64-bit

Disable Toshiba FIR IRDA driver (donauboe) and IBM Lanstreamer
token ring driver on all 64-bit platforms.  Add #error to each driver
explaining the problem, causing build of driver to fail when
BITS_PER_LONG == 64.
parent 45b98617
......@@ -333,7 +333,7 @@ config WINBOND_FIR
config TOSHIBA_FIR
tristate "Toshiba Type-O IR Port"
depends on IRDA
depends on IRDA && !64BIT
help
Say Y here if you want to build support for the Toshiba Type-O IR
and Donau oboe chipsets. These chipsets are used by the Toshiba
......
......@@ -1622,6 +1622,10 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
goto freeregion;
}
#if (BITS_PER_LONG == 64)
#error broken on 64-bit: casts pointer to 32-bit, and then back to pointer.
#endif
/*We need to align the taskfile on a taskfile size boundary */
{
unsigned long addr;
......
......@@ -54,7 +54,7 @@ config IBMOL
config IBMLS
tristate "IBM Lanstreamer chipset PCI adapter support"
depends on TR && PCI
depends on TR && PCI && !64BIT
help
This is support for IBM Lanstreamer PCI Token Ring Cards.
......
......@@ -129,6 +129,11 @@
#include "lanstreamer.h"
#if (BITS_PER_LONG == 64)
#error broken on 64-bit: stores pointer to rx_ring->buffer in 32-bit int
#endif
/* I've got to put some intelligence into the version number so that Peter and I know
* which version of the code somebody has got.
* Version Number = a.b.c.d where a.b.c is the level of code and d is the latest author.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment