From: Javier Martinez Canillas Date: Fri, 27 Feb 2015 05:37:48 +0000 (+0100) Subject: platform/chrome: cros_ec_lpc - Include linux/io.h header file X-Git-Tag: v4.1-rc1~11^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18d0dc24661b42c03074fc89bc89bc0f7c63d2bc;p=karo-tx-linux.git platform/chrome: cros_ec_lpc - Include linux/io.h header file The driver uses the inb() and outb() I/O functions so should include the header file that has these functions definitions. This patch fixes the following error when the header is not explicitly included: drivers/platform/chrome//cros_ec_lpc.c: In function ‘ec_response_timed_out’: drivers/platform/chrome//cros_ec_lpc.c:40:3: error: implicit declaration of function ‘inb’ [-Werror=implicit-function-declaration] drivers/platform/chrome//cros_ec_lpc.c: In function ‘cros_ec_cmd_xfer_lpc’: drivers/platform/chrome//cros_ec_lpc.c:75:3: error: implicit declaration of function ‘outb’ [-Werror=implicit-function-declaration] Signed-off-by: Javier Martinez Canillas Signed-off-by: Olof Johansson --- diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 4bba5ecef9e0..8f9ac4d7bbd0 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include