Skip to content

Commit

Permalink
[media] cx25821: remove bogus dependencies
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 16, 2013
1 parent de9ea4c commit 89c2138
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 44 deletions.
7 changes: 1 addition & 6 deletions drivers/media/pci/cx25821/Kconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
config VIDEO_CX25821
tristate "Conexant cx25821 support"
depends on DVB_CORE && VIDEO_DEV && PCI && I2C
depends on VIDEO_DEV && PCI && I2C
select I2C_ALGOBIT
select VIDEO_BTCX
select VIDEO_TVEEPROM
depends on RC_CORE
select VIDEOBUF_DVB
select VIDEOBUF_DMA_SG
select VIDEO_CX25840
select VIDEO_CX2341X
---help---
This is a video4linux driver for Conexant 25821 based
TV cards.
Expand Down
3 changes: 0 additions & 3 deletions drivers/media/pci/cx25821/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o

ccflags-y += -Idrivers/media/i2c
ccflags-y += -Idrivers/media/common
ccflags-y += -Idrivers/media/tuners
ccflags-y += -Idrivers/media/dvb-core
ccflags-y += -Idrivers/media/dvb-frontends
21 changes: 0 additions & 21 deletions drivers/media/pci/cx25821/cx25821-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <media/cx25840.h>

#include "cx25821.h"

Expand All @@ -50,22 +48,3 @@ struct cx25821_board cx25821_boards[] = {
};

const unsigned int cx25821_bcount = ARRAY_SIZE(cx25821_boards);

struct cx25821_subid cx25821_subids[] = {
{
.subvendor = 0x14f1,
.subdevice = 0x0920,
.card = CX25821_BOARD,
},
};

void cx25821_card_setup(struct cx25821_dev *dev)
{
static u8 eeprom[256];

if (dev->i2c_bus[0].i2c_rc == 0) {
dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom,
sizeof(eeprom));
}
}
2 changes: 0 additions & 2 deletions drivers/media/pci/cx25821/cx25821-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,6 @@ static int cx25821_dev_setup(struct cx25821_dev *dev)
CX25821_INFO("i2c register! bus->i2c_rc = %d\n",
dev->i2c_bus[0].i2c_rc);

cx25821_card_setup(dev);

if (medusa_video_init(dev) < 0)
CX25821_ERR("%s(): Failed to initialize medusa!\n", __func__);

Expand Down
1 change: 1 addition & 0 deletions drivers/media/pci/cx25821/cx25821-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/module.h>
#include "cx25821.h"

/********************* GPIO stuffs *********************/
Expand Down
3 changes: 2 additions & 1 deletion drivers/media/pci/cx25821/cx25821-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include "cx25821.h"
#include <linux/module.h>
#include <linux/i2c.h>
#include "cx25821.h"

static unsigned int i2c_debug;
module_param(i2c_debug, int, 0644);
Expand Down
11 changes: 0 additions & 11 deletions drivers/media/pci/cx25821/cx25821.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@

#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/tveeprom.h>
#include <media/videobuf-dma-sg.h>
#include <media/videobuf-dvb.h>

#include "btcx-risc.h"
#include "cx25821-reg.h"
Expand Down Expand Up @@ -178,12 +176,6 @@ struct cx25821_board {
struct cx25821_input input[CX25821_NR_INPUT];
};

struct cx25821_subid {
u16 subvendor;
u16 subdevice;
u32 card;
};

struct cx25821_i2c {
struct cx25821_dev *dev;

Expand Down Expand Up @@ -406,7 +398,6 @@ static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev)
v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)

extern struct cx25821_board cx25821_boards[];
extern struct cx25821_subid cx25821_subids[];

#define SRAM_CH00 0 /* Video A */
#define SRAM_CH01 1 /* Video B */
Expand Down Expand Up @@ -487,8 +478,6 @@ extern const struct sram_channel cx25821_sram_channels[];
pr_info("(%d): " fmt, dev->board, ##args)

extern int cx25821_i2c_register(struct cx25821_i2c *bus);
extern void cx25821_card_setup(struct cx25821_dev *dev);
extern int cx25821_ir_init(struct cx25821_dev *dev);
extern int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value);
extern int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value);
extern int cx25821_i2c_unregister(struct cx25821_i2c *bus);
Expand Down

0 comments on commit 89c2138

Please sign in to comment.