]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB: Make Philips TEA5761 driver to compile
authorJarkko Nikula <jarkko.nikula@nokia.com>
Tue, 13 Nov 2007 13:46:18 +0000 (15:46 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2007 21:28:42 +0000 (13:28 -0800)
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/media/radio/radio-tea5761.c

index 74fe99e7dbf25a687a213d39cf4926bf755100c3..ac0f62100c13e2b275099c461d9cbd355b983e6d 100644 (file)
@@ -139,9 +139,7 @@ static void tea5761_write_regs(struct tea5761_device *tea)
        struct tea5761_write_regs wr;
        struct tea5761_regs *r = &tea->regs;
        struct i2c_client *client = tea->i2c_dev;
-#ifdef DEBUG
        u8 *p = (u8 *) r;
-#endif
 
        wr.intreg = r->intreg & 0xff;
        wr.frqset = __cpu_to_be16(r->frqset);
@@ -421,7 +419,6 @@ static struct video_device tea5761_video_device = {
        .owner         = THIS_MODULE,
        .name          = "TEA5761 FM-Radio",
        .type          = VID_TYPE_TUNER,
-       .hardware      = 40 /* VID_HARDWARE_TEA5761UK */,
        .fops          = &tea5761_fops,
        .release       = video_device_release
 };
@@ -618,10 +615,7 @@ static int __init tea5761_init(void)
 
 static void __exit tea5761_exit(void)
 {
-       int res;
-
-       if ((res = i2c_del_driver(&tea5761_driver)))
-               printk(KERN_ERR DRIVER_NAME ": i2c driver removal failed\n");
+       i2c_del_driver(&tea5761_driver);
        tea5761_dev_exit();
 }