aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lineage-pem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lineage-pem.c')
-rw-r--r--drivers/hwmon/lineage-pem.c13
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
571static int __init pem_init(void) 571module_i2c_driver(pem_driver);
572{
573 return i2c_add_driver(&pem_driver);
574}
575
576static void __exit pem_exit(void)
577{
578 i2c_del_driver(&pem_driver);
579}
580 572
581MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); 573MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>");
582MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); 574MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver");
583MODULE_LICENSE("GPL"); 575MODULE_LICENSE("GPL");
584
585module_init(pem_init);
586module_exit(pem_exit);