]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/hamachi.c
[PATCH] libata: make ata_set_mode() responsible for failure handling
[linux-2.6-omap-h63xx.git] / drivers / net / hamachi.c
index d9df1d9a5739c471c82ec43186c8312c90f6b63f..0ea4cb4a0d80aa1f0735f904a728ff09345d6089 100644 (file)
@@ -204,6 +204,10 @@ KERN_INFO "   Further modifications by Keith Underwood <keithu@parl.clemson.edu>
 
 #define RUN_AT(x) (jiffies + (x))
 
+#ifndef ADDRLEN
+#define ADDRLEN 32
+#endif
+
 /* Condensed bus+endian portability operations. */
 #if ADDRLEN == 64
 #define cpu_to_leXX(addr)      cpu_to_le64(addr)
@@ -423,7 +427,7 @@ that case.
 static void hamachi_timer(unsigned long data);
 
 enum capability_flags {CanHaveMII=1, };
-static struct chip_info {
+static const struct chip_info {
        u16     vendor_id, device_id, device_id_mask, pad;
        const char *name;
        void (*media_timer)(unsigned long data);