Skip to content

Commit

Permalink
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/mchehab/linux-2.6

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
  V4L/DVB (13039): dib0700: not building CONFIG_DVB_TUNER_DIB0070 breaks compilation
  V4L/DVB (13038): dvbdev: Remove an anoying/uneeded warning
  V4L/DVB (13037): go7007: Revert compatibility code added at the wrong place
  media: video: Fix build in saa7164
  • Loading branch information
Linus Torvalds committed Sep 24, 2009
2 parents db16826 + 3f48258 commit 9f6ac78
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 19 deletions.
5 changes: 2 additions & 3 deletions drivers/media/dvb/dvb-core/dvbdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
#define DVB_MAJOR 212

#if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0
#define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS
#define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS
#else
#warning invalid CONFIG_DVB_MAX_ADAPTERS value
#define DVB_MAX_ADAPTERS 8
#define DVB_MAX_ADAPTERS 8
#endif

#define DVB_UNSET (-1)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ config DVB_USB_DIB0700
select DVB_DIB3000MC if !DVB_FE_CUSTOMISE
select DVB_S5H1411 if !DVB_FE_CUSTOMISE
select DVB_LGDT3305 if !DVB_FE_CUSTOMISE
select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE
select DVB_TUNER_DIB0070
select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMISE
select MEDIA_TUNER_MT2266 if !MEDIA_TUNER_CUSTOMISE
select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE
Expand Down
8 changes: 4 additions & 4 deletions drivers/media/video/saa7164/saa7164-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ int saa7164_api_enum_subdevs(struct saa7164_dev *dev)
goto out;
}

if (debug & DBGLVL_API)
if (saa_debug & DBGLVL_API)
saa7164_dumphex16(dev, buf, (buflen/16)*16);

saa7164_api_dump_subdevs(dev, buf, buflen);
Expand Down Expand Up @@ -480,15 +480,15 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg,

dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len);

if (debug & DBGLVL_I2C)
if (saa_debug & DBGLVL_I2C)
saa7164_dumphex16(dev, buf, 2 * 16);

ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR,
EXU_REGISTER_ACCESS_CONTROL, len, &buf);
if (ret != SAA_OK)
printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret);
else {
if (debug & DBGLVL_I2C)
if (saa_debug & DBGLVL_I2C)
saa7164_dumphex16(dev, buf, sizeof(buf));
memcpy(data, (buf + 2 * sizeof(u32) + reglen), datalen);
}
Expand Down Expand Up @@ -548,7 +548,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
*((u32 *)(buf + 1 * sizeof(u32))) = datalen - reglen;
memcpy((buf + 2 * sizeof(u32)), data, datalen);

if (debug & DBGLVL_I2C)
if (saa_debug & DBGLVL_I2C)
saa7164_dumphex16(dev, buf, sizeof(buf));

ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/saa7164/saa7164-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno)
unsigned long stamp;
int r;

if (debug >= 4)
if (saa_debug >= 4)
saa7164_bus_dump(dev);

dprintk(DBGLVL_CMD, "%s(seqno=%d)\n", __func__, seqno);
Expand Down
6 changes: 3 additions & 3 deletions drivers/media/video/saa7164/saa7164-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ MODULE_LICENSE("GPL");
32 bus
*/

unsigned int debug;
module_param(debug, int, 0644);
unsigned int saa_debug;
module_param_named(debug, saa_debug, int, 0644);
MODULE_PARM_DESC(debug, "enable debug messages");

unsigned int waitsecs = 10;
Expand Down Expand Up @@ -653,7 +653,7 @@ static int __devinit saa7164_initdev(struct pci_dev *pci_dev,
printk(KERN_ERR "%s() Unsupported board detected, "
"registering without firmware\n", __func__);

dprintk(1, "%s() parameter debug = %d\n", __func__, debug);
dprintk(1, "%s() parameter debug = %d\n", __func__, saa_debug);
dprintk(1, "%s() parameter waitsecs = %d\n", __func__, waitsecs);

fail_fw:
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/video/saa7164/saa7164.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ extern int saa7164_buffer_dealloc(struct saa7164_tsport *port,

/* ----------------------------------------------------------- */

extern unsigned int debug;
extern unsigned int saa_debug;
#define dprintk(level, fmt, arg...)\
do { if (debug & level)\
do { if (saa_debug & level)\
printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg);\
} while (0)

Expand Down
5 changes: 0 additions & 5 deletions drivers/staging/go7007/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,3 @@ endif

EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core

# Ubuntu 8.04 has CONFIG_SND undefined, so include lum sound/config.h too
ifeq ($(CONFIG_SND),)
EXTRA_CFLAGS += -include sound/config.h
endif

0 comments on commit 9f6ac78

Please sign in to comment.