diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2017-06-30 11:46:16 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 07:11:56 -0400 |
| commit | 86be7f7b2d940ddc18143061e77989b017d93bf8 (patch) | |
| tree | c0b7fe33b0741cbedc73475d9a948005dd64ec2e /drivers | |
| parent | fe855789d605590e57f9cd968d85ecce46f5c3fd (diff) | |
usb: typec: include linux/device.h in ucsi.h
The new driver causes a build failure in some configurations:
In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0,
from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2:
drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
This includes the required header file.
Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/typec/ucsi/ucsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h index 6b0d2f0918c6..8a88f45822e3 100644 --- a/drivers/usb/typec/ucsi/ucsi.h +++ b/drivers/usb/typec/ucsi/ucsi.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #define __DRIVER_USB_TYPEC_UCSI_H | 3 | #define __DRIVER_USB_TYPEC_UCSI_H |
| 4 | 4 | ||
| 5 | #include <linux/bitops.h> | 5 | #include <linux/bitops.h> |
| 6 | #include <linux/device.h> | ||
| 6 | #include <linux/types.h> | 7 | #include <linux/types.h> |
| 7 | 8 | ||
| 8 | /* -------------------------------------------------------------------------- */ | 9 | /* -------------------------------------------------------------------------- */ |
