Commit bb09051b authored by Edward Peng's avatar Edward Peng Committed by Jeff Garzik

update sundance driver to support building on older kernel:

conditionally include crc32.h, ethtool.h, mii.h, and compat.h
if built outside the stock 2.4.x kernel.
parent ca2c4b26
...@@ -146,18 +146,21 @@ static char *media[MAX_UNITS]; ...@@ -146,18 +146,21 @@ static char *media[MAX_UNITS];
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/processor.h> /* Processor type for cache alignment. */ #include <asm/processor.h> /* Processor type for cache alignment. */
#include <asm/bitops.h> #include <asm/bitops.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#ifndef _LOCAL_CRC32 #ifndef _COMPAT_WITH_OLD_KERNEL
#include <linux/crc32.h> #include <linux/crc32.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#else #else
#include "crc32.h" #include "crc32.h"
#include "ethtool.h"
#include "mii.h"
#include "compat.h"
#endif #endif
/* These identify the driver base version and may not be removed. */ /* These identify the driver base version and may not be removed. */
......
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