hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/mfd/as3711.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * AS3711 PMIC MFC driver
34 *
45 * Copyright (C) 2012 Renesas Electronics Corporation
56 * Author: Guennadi Liakhovetski, <g.liakhovetski@gmx.de>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the version 2 of the GNU General Public License as
9
- * published by the Free Software Foundation
107 */
118
129 #include <linux/device.h>
....@@ -16,7 +13,6 @@
1613 #include <linux/kernel.h>
1714 #include <linux/mfd/as3711.h>
1815 #include <linux/mfd/core.h>
19
-#include <linux/module.h>
2016 #include <linux/of.h>
2117 #include <linux/regmap.h>
2218 #include <linux/slab.h>
....@@ -118,7 +114,6 @@
118114 {.compatible = "ams,as3711",},
119115 {}
120116 };
121
-MODULE_DEVICE_TABLE(of, as3711_of_match);
122117 #endif
123118
124119 static int as3711_i2c_probe(struct i2c_client *client,
....@@ -202,8 +197,6 @@
202197 {}
203198 };
204199
205
-MODULE_DEVICE_TABLE(i2c, as3711_i2c_id);
206
-
207200 static struct i2c_driver as3711_i2c_driver = {
208201 .driver = {
209202 .name = "as3711",
....@@ -219,13 +212,3 @@
219212 }
220213 /* Initialise early */
221214 subsys_initcall(as3711_i2c_init);
222
-
223
-static void __exit as3711_i2c_exit(void)
224
-{
225
- i2c_del_driver(&as3711_i2c_driver);
226
-}
227
-module_exit(as3711_i2c_exit);
228
-
229
-MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");
230
-MODULE_DESCRIPTION("AS3711 PMIC driver");
231
-MODULE_LICENSE("GPL v2");