summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2019-06-19 03:24:41 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-24 15:00:40 -0400
commit021d2ad0f6955d41b19fdb3190f5c351930c9a2d (patch)
treecf890274ff0f6857a1509c16d5098fc2990c0abd /drivers/media
parentba74edc6def24325af256eea8e8790ce6cdb838d (diff)
downloadlinux-021d2ad0f6955d41b19fdb3190f5c351930c9a2d.tar.bz2
media: atmel: atmel-isc: fix i386 build error
Changed module parameters to static. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/atmel/atmel-isc-base.c4
-rw-r--r--drivers/media/platform/atmel/atmel-isc.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c
index eb1f5d4c207e..c1c776b348a9 100644
--- a/drivers/media/platform/atmel/atmel-isc-base.c
+++ b/drivers/media/platform/atmel/atmel-isc-base.c
@@ -35,11 +35,11 @@
#include "atmel-isc-regs.h"
#include "atmel-isc.h"
-unsigned int debug;
+static unsigned int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "debug level (0-2)");
-unsigned int sensor_preferred = 1;
+static unsigned int sensor_preferred = 1;
module_param(sensor_preferred, uint, 0644);
MODULE_PARM_DESC(sensor_preferred,
"Sensor is preferred to output the specified format (1-on 0-off), default 1");
diff --git a/drivers/media/platform/atmel/atmel-isc.h b/drivers/media/platform/atmel/atmel-isc.h
index f5f5932ac1e2..bfaed2fad2b5 100644
--- a/drivers/media/platform/atmel/atmel-isc.h
+++ b/drivers/media/platform/atmel/atmel-isc.h
@@ -230,10 +230,6 @@ struct isc_device {
#define ATMEL_ISC_NAME "atmel-isc"
-/* module parameters */
-extern unsigned int debug;
-extern unsigned int sensor_preferred;
-
extern struct isc_format formats_list[];
extern const struct isc_format controller_formats[];
extern const u32 isc_gamma_table[GAMMA_MAX + 1][GAMMA_ENTRIES];