Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix build for 3.2 series kernels

  • Loading branch information...
commit 28e171abb80fbb33a3b375d33508747d8f6157af 1 parent c6cc82c
ifb authored

Showing 2 changed files with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  src/mdev.c
  2. 4  src/miface.c
4  src/mdev.c
@@ -30,6 +30,10 @@
30 30
 #include <linux/device.h> /* device_create () */
31 31
 #include <linux/fs.h> /* MKDEV () */
32 32
 
  33
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
  34
+#include <linux/module.h> /* modules */
  35
+#endif
  36
+
33 37
 #include "../include/master.h"
34 38
 #include "mdev.h"
35 39
 
4  src/miface.c
@@ -31,6 +31,10 @@
31 31
 #include <linux/dma-mapping.h> /* DMA_FROM_DEVICE */
32 32
 #include <linux/mutex.h> /* mutex_lock () */
33 33
 
  34
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
  35
+#include <linux/module.h> /* modules */
  36
+#endif
  37
+
34 38
 #include "../include/master.h"
35 39
 #include "miface.h"
36 40
 #include "mdev.h"

0 notes on commit 28e171a

Please sign in to comment.
Something went wrong with that request. Please try again.