]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
OMAPDSS: add missing include for string.h
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Sep 2012 07:03:03 +0000 (10:03 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Sep 2012 07:03:03 +0000 (10:03 +0300)
Both dpi.c and sdi.c use strcmp(), but do not include string.h. With
some Kconfig options string.h is included implicitly, but with some
other the compilation fails:

drivers/video/omap2/dss/dpi.c:407:5: error: implicit declaration of
function 'strcmp'

Include string.h in both dpi.c and sdi.c

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/sdi.c

index d73a549050e4f980552bb0401d2aadb9ce846f2a..56748cf8760e52cce7d51245fb2f4dc1808e98c8 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/errno.h>
 #include <linux/platform_device.h>
 #include <linux/regulator/consumer.h>
+#include <linux/string.h>
 
 #include <video/omapdss.h>
 
index 86f096aaf4fe0e34f97fe05802d2230f6f900263..7760851f6e5d5ad5dc9adcc3b540ee4f2f5301d2 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/regulator/consumer.h>
 #include <linux/export.h>
 #include <linux/platform_device.h>
+#include <linux/string.h>
 
 #include <video/omapdss.h>
 #include "dss.h"