Fix compile for olpc target.
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 30 Nov 2008 19:23:03 +0000 (19:23 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Sun, 30 Nov 2008 19:23:03 +0000 (19:23 +0000)
SVN-Revision: 13451

package/libertas/src/if_usb.c
package/libertas/src/main.c

index 74ac86e..97a8119 100644 (file)
@@ -6,7 +6,9 @@
 #include <linux/firmware.h>
 #include <linux/netdevice.h>
 #include <linux/usb.h>
-//#include <asm/olpc.h>
+#ifdef CONFIG_OLPC
+#include <asm/olpc.h>
+#endif
 
 #define DRV_NAME "usb8xxx"
 
index 3291ced..f6820da 100644 (file)
@@ -11,7 +11,9 @@
 #include <linux/if_arp.h>
 #include <linux/kthread.h>
 #include <linux/kfifo.h>
-//#include <asm/olpc.h>
+#ifdef CONFIG_OLPC
+#include <asm/olpc.h>
+#endif
 
 #include <net/iw_handler.h>
 #include <net/ieee80211.h>