diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2015-05-01 18:03:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 09:24:02 +0200 |
commit | 272b1ae57828b99c932d518da6f174bcb72b87f7 (patch) | |
tree | 865c413108eb3279b00a471b63591f45ffbf8f2b | |
parent | eef94f6b7bff013d4efbc5d8ba1eefcd5a88734d (diff) |
staging: comedi: mite: move #include <linux/slab.h>
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>
-rw-r--r-- | drivers/staging/comedi/drivers/mite.c | 1 | ||||
-rw-r--r-- | drivers/staging/comedi/drivers/mite.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c index e43a0c8323c1..e45ce003ec23 100644 --- a/drivers/staging/comedi/drivers/mite.c +++ b/drivers/staging/comedi/drivers/mite.c @@ -47,6 +47,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> +#include <linux/slab.h> #include "../comedi_pci.h" diff --git a/drivers/staging/comedi/drivers/mite.h b/drivers/staging/comedi/drivers/mite.h index b3ca7fc3a31e..cf45f88486e9 100644 --- a/drivers/staging/comedi/drivers/mite.h +++ b/drivers/staging/comedi/drivers/mite.h @@ -20,7 +20,6 @@ #define _MITE_H_ #include <linux/log2.h> -#include <linux/slab.h> #include "../comedi_pci.h" #define PCIMIO_COMPAT |