hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/wm8350-i2c.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC
34 *
....@@ -5,16 +6,8 @@
56 *
67 * Author: Liam Girdwood
78 * linux@wolfsonmicro.com
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the
11
- * Free Software Foundation; either version 2 of the License, or (at your
12
- * option) any later version.
13
- *
149 */
1510
16
-#include <linux/module.h>
17
-#include <linux/moduleparam.h>
1811 #include <linux/err.h>
1912 #include <linux/init.h>
2013 #include <linux/i2c.h>
....@@ -48,30 +41,19 @@
4841 return wm8350_device_init(wm8350, i2c->irq, pdata);
4942 }
5043
51
-static int wm8350_i2c_remove(struct i2c_client *i2c)
52
-{
53
- struct wm8350 *wm8350 = i2c_get_clientdata(i2c);
54
-
55
- wm8350_device_exit(wm8350);
56
-
57
- return 0;
58
-}
59
-
6044 static const struct i2c_device_id wm8350_i2c_id[] = {
6145 { "wm8350", 0 },
6246 { "wm8351", 0 },
6347 { "wm8352", 0 },
6448 { }
6549 };
66
-MODULE_DEVICE_TABLE(i2c, wm8350_i2c_id);
67
-
6850
6951 static struct i2c_driver wm8350_i2c_driver = {
7052 .driver = {
7153 .name = "wm8350",
54
+ .suppress_bind_attrs = true,
7255 },
7356 .probe = wm8350_i2c_probe,
74
- .remove = wm8350_i2c_remove,
7557 .id_table = wm8350_i2c_id,
7658 };
7759
....@@ -81,12 +63,3 @@
8163 }
8264 /* init early so consumer devices can complete system boot */
8365 subsys_initcall(wm8350_i2c_init);
84
-
85
-static void __exit wm8350_i2c_exit(void)
86
-{
87
- i2c_del_driver(&wm8350_i2c_driver);
88
-}
89
-module_exit(wm8350_i2c_exit);
90
-
91
-MODULE_DESCRIPTION("I2C support for the WM8350 AudioPlus PMIC");
92
-MODULE_LICENSE("GPL");