diff options
Diffstat (limited to 'drivers/misc/apds990x.c')
-rw-r--r-- | drivers/misc/apds990x.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index e2a52e5cf449..ee74244aa03b 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c | |||
@@ -1279,19 +1279,8 @@ static struct i2c_driver apds990x_driver = { | |||
1279 | .id_table = apds990x_id, | 1279 | .id_table = apds990x_id, |
1280 | }; | 1280 | }; |
1281 | 1281 | ||
1282 | static int __init apds990x_init(void) | 1282 | module_i2c_driver(apds990x_driver); |
1283 | { | ||
1284 | return i2c_add_driver(&apds990x_driver); | ||
1285 | } | ||
1286 | |||
1287 | static void __exit apds990x_exit(void) | ||
1288 | { | ||
1289 | i2c_del_driver(&apds990x_driver); | ||
1290 | } | ||
1291 | 1283 | ||
1292 | MODULE_DESCRIPTION("APDS990X combined ALS and proximity sensor"); | 1284 | MODULE_DESCRIPTION("APDS990X combined ALS and proximity sensor"); |
1293 | MODULE_AUTHOR("Samu Onkalo, Nokia Corporation"); | 1285 | MODULE_AUTHOR("Samu Onkalo, Nokia Corporation"); |
1294 | MODULE_LICENSE("GPL v2"); | 1286 | MODULE_LICENSE("GPL v2"); |
1295 | |||
1296 | module_init(apds990x_init); | ||
1297 | module_exit(apds990x_exit); | ||