summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-03-19 19:37:59 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-19 19:37:59 +0100
commitc9e7252c62f5ccddcb4ced0910887b0e19663011 (patch)
treeb0160157d9e458411b40aae9e7b13252ca6bcc03
parent[media] video: Kconfig: Select VIDEOBUF2_DMA_CONTIG for VIDEO_MX2 (diff)
downloadlinux-c9e7252c62f5ccddcb4ced0910887b0e19663011.tar.xz
linux-c9e7252c62f5ccddcb4ced0910887b0e19663011.zip
[media] /w9966: Fix a build warning
drivers/media/video/w9966.c: In function ‘__check_pardev’: drivers/media/video/w9966.c:136:1: warning: return from incompatible pointer type [enabled by default] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/w9966.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index 453dbbd1e6e8..7fd7ac567e1a 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -129,9 +129,9 @@ MODULE_LICENSE("GPL");
MODULE_VERSION("0.33.1");
#ifdef MODULE
-static const char *pardev[] = {[0 ... W9966_MAXCAMS] = ""};
+static char *pardev[] = {[0 ... W9966_MAXCAMS] = ""};
#else
-static const char *pardev[] = {[0 ... W9966_MAXCAMS] = "aggressive"};
+static char *pardev[] = {[0 ... W9966_MAXCAMS] = "aggressive"};
#endif
module_param_array(pardev, charp, NULL, 0);
MODULE_PARM_DESC(pardev, "pardev: where to search for\n"