summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda7432.c
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-06-30 14:46:22 +0000
committerGerd Knorr <devnull@localhost>2004-06-30 14:46:22 +0000
commit5c8362d33f8ce00f5b9df552675bcd14e7676b13 (patch)
treef5ae7e1ea2541af2125225559129bbe4fe3d56a9 /linux/drivers/media/video/tda7432.c
parentd8426ab9d1b7d1985b366f4ad7f420a3869c2b0f (diff)
downloadmediapointer-dvb-s2-5c8362d33f8ce00f5b9df552675bcd14e7676b13.tar.gz
mediapointer-dvb-s2-5c8362d33f8ce00f5b9df552675bcd14e7676b13.tar.bz2
- batch of triviasl i2c fixes by Arthur Othieno.
Diffstat (limited to 'linux/drivers/media/video/tda7432.c')
-rw-r--r--linux/drivers/media/video/tda7432.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/tda7432.c b/linux/drivers/media/video/tda7432.c
index 8e921e622..efc1c96a5 100644
--- a/linux/drivers/media/video/tda7432.c
+++ b/linux/drivers/media/video/tda7432.c
@@ -551,17 +551,17 @@ static struct i2c_client client_template =
.driver = &driver,
};
-static int tda7432_init(void)
+static int __init tda7432_init(void)
{
if ( (loudness < 0) || (loudness > 15) ) {
printk(KERN_ERR "tda7432: loudness parameter must be between 0 and 15\n");
return -EINVAL;
}
- i2c_add_driver(&driver);
- return 0;
+
+ return i2c_add_driver(&driver);
}
-static void tda7432_fini(void)
+static void __exit tda7432_fini(void)
{
i2c_del_driver(&driver);
}