.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Liam Girdwood |
---|
7 | 8 | * 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 | | - * |
---|
14 | 9 | */ |
---|
15 | 10 | |
---|
16 | | -#include <linux/module.h> |
---|
17 | | -#include <linux/moduleparam.h> |
---|
18 | 11 | #include <linux/err.h> |
---|
19 | 12 | #include <linux/init.h> |
---|
20 | 13 | #include <linux/i2c.h> |
---|
.. | .. |
---|
48 | 41 | return wm8350_device_init(wm8350, i2c->irq, pdata); |
---|
49 | 42 | } |
---|
50 | 43 | |
---|
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 | | - |
---|
60 | 44 | static const struct i2c_device_id wm8350_i2c_id[] = { |
---|
61 | 45 | { "wm8350", 0 }, |
---|
62 | 46 | { "wm8351", 0 }, |
---|
63 | 47 | { "wm8352", 0 }, |
---|
64 | 48 | { } |
---|
65 | 49 | }; |
---|
66 | | -MODULE_DEVICE_TABLE(i2c, wm8350_i2c_id); |
---|
67 | | - |
---|
68 | 50 | |
---|
69 | 51 | static struct i2c_driver wm8350_i2c_driver = { |
---|
70 | 52 | .driver = { |
---|
71 | 53 | .name = "wm8350", |
---|
| 54 | + .suppress_bind_attrs = true, |
---|
72 | 55 | }, |
---|
73 | 56 | .probe = wm8350_i2c_probe, |
---|
74 | | - .remove = wm8350_i2c_remove, |
---|
75 | 57 | .id_table = wm8350_i2c_id, |
---|
76 | 58 | }; |
---|
77 | 59 | |
---|
.. | .. |
---|
81 | 63 | } |
---|
82 | 64 | /* init early so consumer devices can complete system boot */ |
---|
83 | 65 | 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"); |
---|