Remove unneeded PCI compatibility code
[madwifi/.git] / ath / if_ath_ahb.c
index afb8ab4742f8181e3d365eddec0fa63997c65317..9b5e9d80d0b278c56b91203490547eec605ae949 100644 (file)
@@ -10,7 +10,7 @@
 #define        EXPORT_SYMTAB
 #endif
 
-#ifndef AUTOCONF_INCLUDED
+#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
 #include <linux/config.h>
 #endif
 #include <linux/version.h>
@@ -199,7 +199,7 @@ init_ath_wmac(u_int16_t devid, u_int16_t wlanNum, struct ar531x_config *config)
                printk(KERN_ERR "%s: no memory for device state\n", dev_info);
                goto bad2;
        }
-       sc = dev->priv;
+       sc = netdev_priv(dev);
        sc->aps_sc.sc_dev = dev;
 
        /*