aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorArthur Othieno <apgo@patchbomb.org>2006-03-27 04:17:24 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 11:44:55 -0500
commit756e21a022aba5214bafcf803f114aed8a783b99 (patch)
treed41a2be43ed27563a13fb34b980453f8289d38ce /drivers/video
parentfc4effc7a98d0d320e478d1d42bc4a8a64380150 (diff)
[PATCH] matroxfb: simply return what i2c_add_driver() does
insmod will tell us when the module failed to load. We do no further processing on the return from i2c_add_driver(), so just return what i2c_add_driver() did, instead of storing it. Add __init/__exit annotations while we're at it. Signed-off-by: Arthur Othieno <apgo@patchbomb.org> Acked-by: Jean Delvare <khali@linux-fr.org> Acked-by: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/matrox/matroxfb_maven.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/video/matrox/matroxfb_maven.c b/drivers/video/matrox/matroxfb_maven.c
index 6019710dc298..531a0c3b6ec1 100644
--- a/drivers/video/matrox/matroxfb_maven.c
+++ b/drivers/video/matrox/matroxfb_maven.c
@@ -1297,20 +1297,13 @@ static struct i2c_driver maven_driver={
1297 .detach_client = maven_detach_client, 1297 .detach_client = maven_detach_client,
1298}; 1298};
1299 1299
1300/* ************************** */ 1300static int __init matroxfb_maven_init(void)
1301 1301{
1302static int matroxfb_maven_init(void) { 1302 return i2c_add_driver(&maven_driver);
1303 int err;
1304
1305 err = i2c_add_driver(&maven_driver);
1306 if (err) {
1307 printk(KERN_ERR "maven: Maven driver failed to register (%d).\n", err);
1308 return err;
1309 }
1310 return 0;
1311} 1303}
1312 1304
1313static void matroxfb_maven_exit(void) { 1305static void __exit matroxfb_maven_exit(void)
1306{
1314 i2c_del_driver(&maven_driver); 1307 i2c_del_driver(&maven_driver);
1315} 1308}
1316 1309