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 74ac86ea3da687ecda452f4c7247e0aa6ef8c4f1..97a8119019fb933259eb5247d77418f9208b2a5b 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 3291cedf1f873ed1985a9f8094cbf508d9fbaf49..f6820da76370a047421ea3ef049f778079d4d1f0 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>