Re: ipw2200.ko insmod failed , please help !
Zhu Yi <[email protected]>
| Newsgroups | gmane.linux.drivers.ipw2100.devel |
|---|---|
| Organization | Intel Corp. |
| Message-ID | <[email protected]> |
On Wed, 2006-06-07 at 14:16 +0800, Shawn Q.Z. Tang wrote: > > Hi Zhu : > How to removing the usage of leXX_to_cpu and cpu_to_leXX macro > in the ipw2200.c ? > > I have modified the ipw2200.c as bellow, pls have a check whether it's > right. > > #define DRV_COPYRIGHT "Copyright(c) 2003-2006 Intel > Corporation" > #define DRV_VERSION IPW2200_VERSION > > + #ifdef le32_to_cpu > + #undef le32_to_cpu > + #undef le16_to_cpu > + #undef cpu_to_le32 > + #undef cpu_to_le16 > + #endif Just put these instead: + #undef le32_to_cpu + #define le32_to_cpu + #undef le16_to_cpu + #define le16_to_cpu ...