hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/mfd/rc5t583.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Core driver access RC5T583 power management chip.
34 *
....@@ -6,24 +7,10 @@
67 *
78 * Based on code
89 * Copyright (C) 2011 RICOH COMPANY,LTD
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms and conditions of the GNU General Public License,
12
- * version 2, as published by the Free Software Foundation.
13
- *
14
- * This program is distributed in the hope it will be useful, but WITHOUT
15
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17
- * more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
- *
2210 */
2311 #include <linux/interrupt.h>
2412 #include <linux/irq.h>
2513 #include <linux/kernel.h>
26
-#include <linux/module.h>
2714 #include <linux/init.h>
2815 #include <linux/err.h>
2916 #include <linux/slab.h>
....@@ -298,8 +285,6 @@
298285 {}
299286 };
300287
301
-MODULE_DEVICE_TABLE(i2c, rc5t583_i2c_id);
302
-
303288 static struct i2c_driver rc5t583_i2c_driver = {
304289 .driver = {
305290 .name = "rc5t583",
....@@ -313,14 +298,3 @@
313298 return i2c_add_driver(&rc5t583_i2c_driver);
314299 }
315300 subsys_initcall(rc5t583_i2c_init);
316
-
317
-static void __exit rc5t583_i2c_exit(void)
318
-{
319
- i2c_del_driver(&rc5t583_i2c_driver);
320
-}
321
-
322
-module_exit(rc5t583_i2c_exit);
323
-
324
-MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
325
-MODULE_DESCRIPTION("RICOH RC5T583 power management system device driver");
326
-MODULE_LICENSE("GPL v2");