Discussion:
[PATCH] semaphore.h moved in 2.6.26
Tormod Volden
2009-01-08 22:07:30 UTC
Permalink
With 2.6.26, semaphore.h was moved from include/asm to include/linux
---
src/prism2/driver/hfa384x.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/prism2/driver/hfa384x.c b/src/prism2/driver/hfa384x.c
index e706e6e..928f777 100644
--- a/src/prism2/driver/hfa384x.c
+++ b/src/prism2/driver/hfa384x.c
@@ -131,7 +131,11 @@
#include <linux/wireless.h>
#include <linux/netdevice.h>
#include <linux/timer.h>
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
#include <asm/semaphore.h>
+#else
+#include <linux/semaphore.h>
+#endif
#include <asm/io.h>
#include <linux/delay.h>
#include <asm/byteorder.h>
--
1.5.6.3
Loading...