]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: mite: move #include <linux/slab.h>
authorIan Abbott <abbotti@mev.co.uk>
Fri, 1 May 2015 17:03:56 +0000 (18:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:02 +0000 (09:24 +0200)
The Comedi driver modules build fine if the inclusion of <linux/slab.h>
is removed from "mite.h", so remove it.  However, since "mite.c" calls
`kzalloc()`, include <linux/slab.h> there.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mite.c
drivers/staging/comedi/drivers/mite.h

index e43a0c8323c18e7715df21b875d07191dff702ff..e45ce003ec23060d58570711565db841e10a26f3 100644 (file)
@@ -47,6 +47,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
+#include <linux/slab.h>
 
 #include "../comedi_pci.h"
 
index b3ca7fc3a31e7de83a261c189093711531b99575..cf45f88486e9b03b27e811c8c01dc885aa951928 100644 (file)
@@ -20,7 +20,6 @@
 #define _MITE_H_
 
 #include <linux/log2.h>
-#include <linux/slab.h>
 #include "../comedi_pci.h"
 
 #define PCIMIO_COMPAT