.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * isl9305 - Intersil ISL9305 DCDC regulator |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2014 Linaro Ltd |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Mark Brown <broonie@kernel.org> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify it |
---|
9 | | - * under the terms of the GNU General Public License as published by the |
---|
10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
11 | | - * option) any later version. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
84 | 80 | .enable_mask = ISL9305_DCD1_EN, |
---|
85 | 81 | .supply_name = "VINDCD1", |
---|
86 | 82 | .ops = &isl9305_ops, |
---|
| 83 | + .owner = THIS_MODULE, |
---|
87 | 84 | }, |
---|
88 | 85 | [ISL9305_DCD2] = { |
---|
89 | 86 | .name = "DCD2", |
---|
.. | .. |
---|
98 | 95 | .enable_mask = ISL9305_DCD2_EN, |
---|
99 | 96 | .supply_name = "VINDCD2", |
---|
100 | 97 | .ops = &isl9305_ops, |
---|
| 98 | + .owner = THIS_MODULE, |
---|
101 | 99 | }, |
---|
102 | 100 | [ISL9305_LDO1] = { |
---|
103 | 101 | .name = "LDO1", |
---|
.. | .. |
---|
112 | 110 | .enable_mask = ISL9305_LDO1_EN, |
---|
113 | 111 | .supply_name = "VINLDO1", |
---|
114 | 112 | .ops = &isl9305_ops, |
---|
| 113 | + .owner = THIS_MODULE, |
---|
115 | 114 | }, |
---|
116 | 115 | [ISL9305_LDO2] = { |
---|
117 | 116 | .name = "LDO2", |
---|
.. | .. |
---|
126 | 125 | .enable_mask = ISL9305_LDO2_EN, |
---|
127 | 126 | .supply_name = "VINLDO2", |
---|
128 | 127 | .ops = &isl9305_ops, |
---|
| 128 | + .owner = THIS_MODULE, |
---|
129 | 129 | }, |
---|
130 | 130 | }; |
---|
131 | 131 | |
---|
.. | .. |
---|
137 | 137 | .cache_type = REGCACHE_RBTREE, |
---|
138 | 138 | }; |
---|
139 | 139 | |
---|
140 | | -static int isl9305_i2c_probe(struct i2c_client *i2c, |
---|
141 | | - const struct i2c_device_id *id) |
---|
| 140 | +static int isl9305_i2c_probe(struct i2c_client *i2c) |
---|
142 | 141 | { |
---|
143 | 142 | struct regulator_config config = { }; |
---|
144 | 143 | struct isl9305_pdata *pdata = i2c->dev.platform_data; |
---|
.. | .. |
---|
198 | 197 | .name = "isl9305", |
---|
199 | 198 | .of_match_table = of_match_ptr(isl9305_dt_ids), |
---|
200 | 199 | }, |
---|
201 | | - .probe = isl9305_i2c_probe, |
---|
| 200 | + .probe_new = isl9305_i2c_probe, |
---|
202 | 201 | .id_table = isl9305_i2c_id, |
---|
203 | 202 | }; |
---|
204 | 203 | |
---|