Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix build for 3.2 series kernels

  • Loading branch information...
commit 28e171abb80fbb33a3b375d33508747d8f6157af 1 parent c6cc82c
@ifb ifb authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 src/mdev.c
  2. +4 −0 src/miface.c
View
4 src/mdev.c
@@ -30,6 +30,10 @@
#include <linux/device.h> /* device_create () */
#include <linux/fs.h> /* MKDEV () */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+#include <linux/module.h> /* modules */
+#endif
+
#include "../include/master.h"
#include "mdev.h"
View
4 src/miface.c
@@ -31,6 +31,10 @@
#include <linux/dma-mapping.h> /* DMA_FROM_DEVICE */
#include <linux/mutex.h> /* mutex_lock () */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+#include <linux/module.h> /* modules */
+#endif
+
#include "../include/master.h"
#include "miface.h"
#include "mdev.h"
Please sign in to comment.
Something went wrong with that request. Please try again.