diff options
| -rw-r--r-- | drivers/mfd/menelaus.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index ad25bfa3fb02..5e2667afe2bc 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c | |||
| @@ -1287,29 +1287,8 @@ static struct i2c_driver menelaus_i2c_driver = { | |||
| 1287 | .id_table = menelaus_id, | 1287 | .id_table = menelaus_id, |
| 1288 | }; | 1288 | }; |
| 1289 | 1289 | ||
| 1290 | static int __init menelaus_init(void) | 1290 | module_i2c_driver(menelaus_i2c_driver); |
| 1291 | { | ||
| 1292 | int res; | ||
| 1293 | |||
| 1294 | res = i2c_add_driver(&menelaus_i2c_driver); | ||
| 1295 | if (res < 0) { | ||
| 1296 | pr_err(DRIVER_NAME ": driver registration failed\n"); | ||
| 1297 | return res; | ||
| 1298 | } | ||
| 1299 | |||
| 1300 | return 0; | ||
| 1301 | } | ||
| 1302 | |||
| 1303 | static void __exit menelaus_exit(void) | ||
| 1304 | { | ||
| 1305 | i2c_del_driver(&menelaus_i2c_driver); | ||
| 1306 | |||
| 1307 | /* FIXME: Shutdown menelaus parts that can be shut down */ | ||
| 1308 | } | ||
| 1309 | 1291 | ||
| 1310 | MODULE_AUTHOR("Texas Instruments, Inc. (and others)"); | 1292 | MODULE_AUTHOR("Texas Instruments, Inc. (and others)"); |
| 1311 | MODULE_DESCRIPTION("I2C interface for Menelaus."); | 1293 | MODULE_DESCRIPTION("I2C interface for Menelaus."); |
| 1312 | MODULE_LICENSE("GPL"); | 1294 | MODULE_LICENSE("GPL"); |
| 1313 | |||
| 1314 | module_init(menelaus_init); | ||
| 1315 | module_exit(menelaus_exit); | ||
