Commit 69cc712d authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

V4L/DVB: Make Philips TEA5761 driver to compile

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d49d3660
...@@ -139,9 +139,7 @@ static void tea5761_write_regs(struct tea5761_device *tea) ...@@ -139,9 +139,7 @@ static void tea5761_write_regs(struct tea5761_device *tea)
struct tea5761_write_regs wr; struct tea5761_write_regs wr;
struct tea5761_regs *r = &tea->regs; struct tea5761_regs *r = &tea->regs;
struct i2c_client *client = tea->i2c_dev; struct i2c_client *client = tea->i2c_dev;
#ifdef DEBUG
u8 *p = (u8 *) r; u8 *p = (u8 *) r;
#endif
wr.intreg = r->intreg & 0xff; wr.intreg = r->intreg & 0xff;
wr.frqset = __cpu_to_be16(r->frqset); wr.frqset = __cpu_to_be16(r->frqset);
...@@ -421,7 +419,6 @@ static struct video_device tea5761_video_device = { ...@@ -421,7 +419,6 @@ static struct video_device tea5761_video_device = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "TEA5761 FM-Radio", .name = "TEA5761 FM-Radio",
.type = VID_TYPE_TUNER, .type = VID_TYPE_TUNER,
.hardware = 40 /* VID_HARDWARE_TEA5761UK */,
.fops = &tea5761_fops, .fops = &tea5761_fops,
.release = video_device_release .release = video_device_release
}; };
...@@ -618,10 +615,7 @@ static int __init tea5761_init(void) ...@@ -618,10 +615,7 @@ static int __init tea5761_init(void)
static void __exit tea5761_exit(void) static void __exit tea5761_exit(void)
{ {
int res; i2c_del_driver(&tea5761_driver);
if ((res = i2c_del_driver(&tea5761_driver)))
printk(KERN_ERR DRIVER_NAME ": i2c driver removal failed\n");
tea5761_dev_exit(); tea5761_dev_exit();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment