From: Ian Abbott Date: Fri, 22 May 2015 16:32:03 +0000 (+0100) Subject: staging: comedi: addi_watchdog.h: don't include "../comedidev.h" X-Git-Tag: v5.15~15549^2~538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e57180c85a0b9b471327c69679fb81fd36578897;p=platform%2Fkernel%2Flinux-starfive.git staging: comedi: addi_watchdog.h: don't include "../comedidev.h" The Comedi "addi_watchdog.h" header doesn't use anything form "comedidev.h" apart from `struct comedi_subdevice`, which it only uses to construct a corresponding pointer type within the parameter list of a function prototype. Just declare the structure type incompletely and don't bother including the header file. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_watchdog.h b/drivers/staging/comedi/drivers/addi_watchdog.h index 83b47be..3f8e738 100644 --- a/drivers/staging/comedi/drivers/addi_watchdog.h +++ b/drivers/staging/comedi/drivers/addi_watchdog.h @@ -1,7 +1,7 @@ #ifndef _ADDI_WATCHDOG_H #define _ADDI_WATCHDOG_H -#include "../comedidev.h" +struct comedi_subdevice; void addi_watchdog_reset(unsigned long iobase); int addi_watchdog_init(struct comedi_subdevice *, unsigned long iobase);