diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-04-13 07:01:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 17:03:27 -0400 |
commit | 89c21389f2a48afb2fb24fdf74433950cb9b19a2 (patch) | |
tree | 8040807314c865a8ff810103a281be5a96d20faa /drivers/media | |
parent | de9ea4cf7fd875460646f97c1f8addafe0454180 (diff) |
[media] cx25821: remove bogus dependencies
This driver doesn't use DVB, RC, cx25840 or tveeprom.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/cx25821/Kconfig | 7 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/Makefile | 3 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-cards.c | 21 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-core.c | 2 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-gpio.c | 1 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-i2c.c | 3 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821.h | 11 |
7 files changed, 4 insertions, 44 deletions
diff --git a/drivers/media/pci/cx25821/Kconfig b/drivers/media/pci/cx25821/Kconfig index 4017c9420348..6439a847680c 100644 --- a/drivers/media/pci/cx25821/Kconfig +++ b/drivers/media/pci/cx25821/Kconfig | |||
@@ -1,14 +1,9 @@ | |||
1 | config VIDEO_CX25821 | 1 | config VIDEO_CX25821 |
2 | tristate "Conexant cx25821 support" | 2 | tristate "Conexant cx25821 support" |
3 | depends on DVB_CORE && VIDEO_DEV && PCI && I2C | 3 | depends on VIDEO_DEV && PCI && I2C |
4 | select I2C_ALGOBIT | 4 | select I2C_ALGOBIT |
5 | select VIDEO_BTCX | 5 | select VIDEO_BTCX |
6 | select VIDEO_TVEEPROM | ||
7 | depends on RC_CORE | ||
8 | select VIDEOBUF_DVB | ||
9 | select VIDEOBUF_DMA_SG | 6 | select VIDEOBUF_DMA_SG |
10 | select VIDEO_CX25840 | ||
11 | select VIDEO_CX2341X | ||
12 | ---help--- | 7 | ---help--- |
13 | This is a video4linux driver for Conexant 25821 based | 8 | This is a video4linux driver for Conexant 25821 based |
14 | TV cards. | 9 | TV cards. |
diff --git a/drivers/media/pci/cx25821/Makefile b/drivers/media/pci/cx25821/Makefile index caa32b7b51f8..b54a32e88bd0 100644 --- a/drivers/media/pci/cx25821/Makefile +++ b/drivers/media/pci/cx25821/Makefile | |||
@@ -9,6 +9,3 @@ obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o | |||
9 | 9 | ||
10 | ccflags-y += -Idrivers/media/i2c | 10 | ccflags-y += -Idrivers/media/i2c |
11 | ccflags-y += -Idrivers/media/common | 11 | ccflags-y += -Idrivers/media/common |
12 | ccflags-y += -Idrivers/media/tuners | ||
13 | ccflags-y += -Idrivers/media/dvb-core | ||
14 | ccflags-y += -Idrivers/media/dvb-frontends | ||
diff --git a/drivers/media/pci/cx25821/cx25821-cards.c b/drivers/media/pci/cx25821/cx25821-cards.c index c09ec68460e4..2b2f1f4f87ac 100644 --- a/drivers/media/pci/cx25821/cx25821-cards.c +++ b/drivers/media/pci/cx25821/cx25821-cards.c | |||
@@ -26,8 +26,6 @@ | |||
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/pci.h> | 28 | #include <linux/pci.h> |
29 | #include <linux/delay.h> | ||
30 | #include <media/cx25840.h> | ||
31 | 29 | ||
32 | #include "cx25821.h" | 30 | #include "cx25821.h" |
33 | 31 | ||
@@ -50,22 +48,3 @@ struct cx25821_board cx25821_boards[] = { | |||
50 | }; | 48 | }; |
51 | 49 | ||
52 | const unsigned int cx25821_bcount = ARRAY_SIZE(cx25821_boards); | 50 | const unsigned int cx25821_bcount = ARRAY_SIZE(cx25821_boards); |
53 | |||
54 | struct cx25821_subid cx25821_subids[] = { | ||
55 | { | ||
56 | .subvendor = 0x14f1, | ||
57 | .subdevice = 0x0920, | ||
58 | .card = CX25821_BOARD, | ||
59 | }, | ||
60 | }; | ||
61 | |||
62 | void cx25821_card_setup(struct cx25821_dev *dev) | ||
63 | { | ||
64 | static u8 eeprom[256]; | ||
65 | |||
66 | if (dev->i2c_bus[0].i2c_rc == 0) { | ||
67 | dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; | ||
68 | tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, | ||
69 | sizeof(eeprom)); | ||
70 | } | ||
71 | } | ||
diff --git a/drivers/media/pci/cx25821/cx25821-core.c b/drivers/media/pci/cx25821/cx25821-core.c index 6205ade04a97..82c2db0944e3 100644 --- a/drivers/media/pci/cx25821/cx25821-core.c +++ b/drivers/media/pci/cx25821/cx25821-core.c | |||
@@ -953,8 +953,6 @@ static int cx25821_dev_setup(struct cx25821_dev *dev) | |||
953 | CX25821_INFO("i2c register! bus->i2c_rc = %d\n", | 953 | CX25821_INFO("i2c register! bus->i2c_rc = %d\n", |
954 | dev->i2c_bus[0].i2c_rc); | 954 | dev->i2c_bus[0].i2c_rc); |
955 | 955 | ||
956 | cx25821_card_setup(dev); | ||
957 | |||
958 | if (medusa_video_init(dev) < 0) | 956 | if (medusa_video_init(dev) < 0) |
959 | CX25821_ERR("%s(): Failed to initialize medusa!\n", __func__); | 957 | CX25821_ERR("%s(): Failed to initialize medusa!\n", __func__); |
960 | 958 | ||
diff --git a/drivers/media/pci/cx25821/cx25821-gpio.c b/drivers/media/pci/cx25821/cx25821-gpio.c index 29e43b03c85e..95e8ddf62947 100644 --- a/drivers/media/pci/cx25821/cx25821-gpio.c +++ b/drivers/media/pci/cx25821/cx25821-gpio.c | |||
@@ -20,6 +20,7 @@ | |||
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/module.h> | ||
23 | #include "cx25821.h" | 24 | #include "cx25821.h" |
24 | 25 | ||
25 | /********************* GPIO stuffs *********************/ | 26 | /********************* GPIO stuffs *********************/ |
diff --git a/drivers/media/pci/cx25821/cx25821-i2c.c b/drivers/media/pci/cx25821/cx25821-i2c.c index a8dc945bbe17..dca37c7dba73 100644 --- a/drivers/media/pci/cx25821/cx25821-i2c.c +++ b/drivers/media/pci/cx25821/cx25821-i2c.c | |||
@@ -23,8 +23,9 @@ | |||
23 | 23 | ||
24 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 24 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
25 | 25 | ||
26 | #include "cx25821.h" | 26 | #include <linux/module.h> |
27 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
28 | #include "cx25821.h" | ||
28 | 29 | ||
29 | static unsigned int i2c_debug; | 30 | static unsigned int i2c_debug; |
30 | module_param(i2c_debug, int, 0644); | 31 | module_param(i2c_debug, int, 0644); |
diff --git a/drivers/media/pci/cx25821/cx25821.h b/drivers/media/pci/cx25821/cx25821.h index 033993f1fb08..61c6cfc02d8c 100644 --- a/drivers/media/pci/cx25821/cx25821.h +++ b/drivers/media/pci/cx25821/cx25821.h | |||
@@ -33,9 +33,7 @@ | |||
33 | 33 | ||
34 | #include <media/v4l2-common.h> | 34 | #include <media/v4l2-common.h> |
35 | #include <media/v4l2-device.h> | 35 | #include <media/v4l2-device.h> |
36 | #include <media/tveeprom.h> | ||
37 | #include <media/videobuf-dma-sg.h> | 36 | #include <media/videobuf-dma-sg.h> |
38 | #include <media/videobuf-dvb.h> | ||
39 | 37 | ||
40 | #include "btcx-risc.h" | 38 | #include "btcx-risc.h" |
41 | #include "cx25821-reg.h" | 39 | #include "cx25821-reg.h" |
@@ -178,12 +176,6 @@ struct cx25821_board { | |||
178 | struct cx25821_input input[CX25821_NR_INPUT]; | 176 | struct cx25821_input input[CX25821_NR_INPUT]; |
179 | }; | 177 | }; |
180 | 178 | ||
181 | struct cx25821_subid { | ||
182 | u16 subvendor; | ||
183 | u16 subdevice; | ||
184 | u32 card; | ||
185 | }; | ||
186 | |||
187 | struct cx25821_i2c { | 179 | struct cx25821_i2c { |
188 | struct cx25821_dev *dev; | 180 | struct cx25821_dev *dev; |
189 | 181 | ||
@@ -406,7 +398,6 @@ static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev) | |||
406 | v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) | 398 | v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) |
407 | 399 | ||
408 | extern struct cx25821_board cx25821_boards[]; | 400 | extern struct cx25821_board cx25821_boards[]; |
409 | extern struct cx25821_subid cx25821_subids[]; | ||
410 | 401 | ||
411 | #define SRAM_CH00 0 /* Video A */ | 402 | #define SRAM_CH00 0 /* Video A */ |
412 | #define SRAM_CH01 1 /* Video B */ | 403 | #define SRAM_CH01 1 /* Video B */ |
@@ -487,8 +478,6 @@ extern const struct sram_channel cx25821_sram_channels[]; | |||
487 | pr_info("(%d): " fmt, dev->board, ##args) | 478 | pr_info("(%d): " fmt, dev->board, ##args) |
488 | 479 | ||
489 | extern int cx25821_i2c_register(struct cx25821_i2c *bus); | 480 | extern int cx25821_i2c_register(struct cx25821_i2c *bus); |
490 | extern void cx25821_card_setup(struct cx25821_dev *dev); | ||
491 | extern int cx25821_ir_init(struct cx25821_dev *dev); | ||
492 | extern int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value); | 481 | extern int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value); |
493 | extern int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value); | 482 | extern int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value); |
494 | extern int cx25821_i2c_unregister(struct cx25821_i2c *bus); | 483 | extern int cx25821_i2c_unregister(struct cx25821_i2c *bus); |