diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-24 17:04:43 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-23 14:07:25 -0700 |
commit | ce157f8032bbd46d9427034c335b0afd751da25d (patch) | |
tree | 58ca88b75fd28ff97d8e5b6f95def4ec70ea2b18 /drivers/staging/comedi/drivers/ni_at_a2150.c | |
parent | 0bdab509bf9c6d838dc0a3b1d68bbf841fc20b5a (diff) |
staging: comedi: don't rely on comedidev.h to include headers
comedidev.h is the main kernel header for comedi. Every comedi
driver includes this header which then includes a number of
<linux/*> headers. All the drivers need <linux/module.h> and some
of them need <linux/delay.h>. The rest are not needed by any of
the drivers.
Remove all the includes in comedidev.h except for <linux/dma-mapping.h>,
which is needed to pick up the enum dma_data_direction for the
comedi_subdevice definition, and "comedi.h", which is the uapi
header for comedi.
Add <linux/module.h> to all the comedi drivers and <linux/delay.h>
to the couple that need it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/ni_at_a2150.c')
-rw-r--r-- | drivers/staging/comedi/drivers/ni_at_a2150.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/ni_at_a2150.c b/drivers/staging/comedi/drivers/ni_at_a2150.c index 82c5ca686300..e13d5c83fb48 100644 --- a/drivers/staging/comedi/drivers/ni_at_a2150.c +++ b/drivers/staging/comedi/drivers/ni_at_a2150.c @@ -58,12 +58,15 @@ TRIG_WAKE_EOS */ +#include <linux/module.h> +#include <linux/delay.h> #include <linux/interrupt.h> #include <linux/slab.h> #include "../comedidev.h" #include <linux/ioport.h> #include <linux/io.h> + #include <asm/dma.h> #include "8253.h" |