[PATCH 1/3] platform/chrome: cros_ec_lpc - Include linux/io.h header file

From: Javier Martinez Canillas
Date: Fri Feb 27 2015 - 00:39:28 EST


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 <javier.martinez@xxxxxxxxxxxxxxx>
---
drivers/platform/chrome/cros_ec_lpc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c
index 822fdb36ded9..f00bf4d246a1 100644
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -23,6 +23,7 @@

#include <linux/dmi.h>
#include <linux/delay.h>
+#include <linux/io.h>
#include <linux/mfd/cros_ec.h>
#include <linux/mfd/cros_ec_commands.h>
#include <linux/module.h>
--
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/