From c20dbf64a976a40d39694a991d3bf51985cb35f6 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Thu, 2 Aug 2012 10:49:24 +0000 Subject: input: key_matrix: fix header inclusion On Microblaze with device tree support enabled we run into the error below. I'm not sure, but I think that all source code should include at least the common.h and just this fix the problem on Microblaz architecture. The error is: In file included from key_matrix.c:29: include/malloc.h:364: error: conflicting types for 'memset' include/linux/string.h:71: error: previous declaration of 'memset' was here include/malloc.h:365: error: conflicting types for 'memcpy' include/linux/string.h:74: error: previous declaration of 'memcpy' was here Signed-off-by: Stephan Linz CC: Bernie Thompson CC: Simon Glass CC: Tom Warren CC: Michal Simek Acked-by: Simon Glass Acked-by: Michal Simek --- drivers/input/key_matrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/key_matrix.c b/drivers/input/key_matrix.c index 84b898ff38..715e57a2af 100644 --- a/drivers/input/key_matrix.c +++ b/drivers/input/key_matrix.c @@ -23,6 +23,7 @@ * MA 02111-1307 USA */ +#include #include #include #include -- cgit v1.2.1