Patch from Pavel Roskin fixes the build on 2.6.26.

This commit is contained in:
pizza 2008-08-12 12:52:10 +00:00
parent 0b9426b9e7
commit 1145037797
2 changed files with 4 additions and 1 deletions

View file

@ -41,6 +41,7 @@
* Intersil Corporation as part of PRISM(R) chipset product development.
*
* --------------------------------------------------------------------
- Fix compiles with 2.6.26 (Pavel Roskin)
- Add compatibility with 2.6.27+ WEXT API (Pavel Roskin)
- Fix misplaced variable in PCMCIA code (Pavel Roskin)
- Add compatibility for gfp_t and mutex APIs (Pavel Roskin)

View file

@ -947,7 +947,9 @@ int wlan_setup(wlandevice_t *wlandev)
#endif
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) )
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) )
dev_net_set(dev, &init_net);
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) )
dev->nd_net = &init_net;
#endif