diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-19 08:45:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-22 20:54:00 -0400 |
commit | d4c02ef91b74fc6584196cdeab3eb12daac6e380 (patch) | |
tree | e15b5ef1174aae80f06767d2909c9a948a5add46 /drivers/media | |
parent | 18039ae9de672f46a1a4fa404f8e6ae009bed734 (diff) |
V4L/DVB (13038): dvbdev: Remove an anoying/uneeded warning
As pointed by Marcin Slusarz <marcin.slusarz@gmail.com>, the warns happens
because CONFIG_DVB_MAX_ADAPTERS depends on CONFIG_DVB_CORE, and there are
valid configs where DVB_CORE is not selected.
This causes such warnings, for every V4L and common drivers that may or
may not be compiled with DVB support:
drivers/media/dvb/dvb-core/dvbdev.h:36:2: warning: #warning invalid CONFIG_DVB_MAX_ADAPTERS value
We can safely remove the warning.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-core/dvbdev.h b/drivers/media/dvb/dvb-core/dvbdev.h index 895e2efca8a..01fc7048474 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.h +++ b/drivers/media/dvb/dvb-core/dvbdev.h | |||
@@ -31,10 +31,9 @@ | |||
31 | #define DVB_MAJOR 212 | 31 | #define DVB_MAJOR 212 |
32 | 32 | ||
33 | #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0 | 33 | #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0 |
34 | #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS | 34 | #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS |
35 | #else | 35 | #else |
36 | #warning invalid CONFIG_DVB_MAX_ADAPTERS value | 36 | #define DVB_MAX_ADAPTERS 8 |
37 | #define DVB_MAX_ADAPTERS 8 | ||
38 | #endif | 37 | #endif |
39 | 38 | ||
40 | #define DVB_UNSET (-1) | 39 | #define DVB_UNSET (-1) |