diff options
Diffstat (limited to 'drivers/video/matrox')
-rw-r--r-- | drivers/video/matrox/matroxfb_maven.c | 17 |
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 | /* ************************** */ | 1300 | static int __init matroxfb_maven_init(void) |
1301 | 1301 | { | |
1302 | static 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 | ||
1313 | static void matroxfb_maven_exit(void) { | 1305 | static void __exit matroxfb_maven_exit(void) |
1306 | { | ||
1314 | i2c_del_driver(&maven_driver); | 1307 | i2c_del_driver(&maven_driver); |
1315 | } | 1308 | } |
1316 | 1309 | ||