diff options
Diffstat (limited to 'drivers/hwmon/lineage-pem.c')
-rw-r--r-- | drivers/hwmon/lineage-pem.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/lineage-pem.c b/drivers/hwmon/lineage-pem.c index 58eded27f385..5b8c9aeed3d6 100644 --- a/drivers/hwmon/lineage-pem.c +++ b/drivers/hwmon/lineage-pem.c | |||
@@ -568,19 +568,8 @@ static struct i2c_driver pem_driver = { | |||
568 | .id_table = pem_id, | 568 | .id_table = pem_id, |
569 | }; | 569 | }; |
570 | 570 | ||
571 | static int __init pem_init(void) | 571 | module_i2c_driver(pem_driver); |
572 | { | ||
573 | return i2c_add_driver(&pem_driver); | ||
574 | } | ||
575 | |||
576 | static void __exit pem_exit(void) | ||
577 | { | ||
578 | i2c_del_driver(&pem_driver); | ||
579 | } | ||
580 | 572 | ||
581 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 573 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
582 | MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); | 574 | MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); |
583 | MODULE_LICENSE("GPL"); | 575 | MODULE_LICENSE("GPL"); |
584 | |||
585 | module_init(pem_init); | ||
586 | module_exit(pem_exit); | ||