File tree Expand file tree Collapse file tree 8 files changed +17
-32
lines changed Expand file tree Collapse file tree 8 files changed +17
-32
lines changed Original file line number Diff line number Diff line change @@ -339,14 +339,12 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
339
339
return ret ;
340
340
}
341
341
342
- static int arizona_ldo1_remove (struct platform_device * pdev )
342
+ static void arizona_ldo1_remove (struct platform_device * pdev )
343
343
{
344
344
struct arizona_ldo1 * ldo1 = platform_get_drvdata (pdev );
345
345
346
346
if (ldo1 -> ena_gpiod )
347
347
gpiod_put (ldo1 -> ena_gpiod );
348
-
349
- return 0 ;
350
348
}
351
349
352
350
static int madera_ldo1_probe (struct platform_device * pdev )
@@ -377,7 +375,7 @@ static int madera_ldo1_probe(struct platform_device *pdev)
377
375
378
376
static struct platform_driver arizona_ldo1_driver = {
379
377
.probe = arizona_ldo1_probe ,
380
- .remove = arizona_ldo1_remove ,
378
+ .remove_new = arizona_ldo1_remove ,
381
379
.driver = {
382
380
.name = "arizona-ldo1" ,
383
381
.probe_type = PROBE_FORCE_SYNCHRONOUS ,
@@ -386,7 +384,7 @@ static struct platform_driver arizona_ldo1_driver = {
386
384
387
385
static struct platform_driver madera_ldo1_driver = {
388
386
.probe = madera_ldo1_probe ,
389
- .remove = arizona_ldo1_remove ,
387
+ .remove_new = arizona_ldo1_remove ,
390
388
.driver = {
391
389
.name = "madera-ldo1" ,
392
390
.probe_type = PROBE_FORCE_SYNCHRONOUS ,
Original file line number Diff line number Diff line change @@ -260,10 +260,9 @@ static const struct dev_pm_ops bd9571mwv_pm = {
260
260
SET_SYSTEM_SLEEP_PM_OPS (bd9571mwv_suspend , bd9571mwv_resume )
261
261
};
262
262
263
- static int bd9571mwv_regulator_remove (struct platform_device * pdev )
263
+ static void bd9571mwv_regulator_remove (struct platform_device * pdev )
264
264
{
265
265
device_remove_file (& pdev -> dev , & dev_attr_backup_mode );
266
- return 0 ;
267
266
}
268
267
#define DEV_PM_OPS &bd9571mwv_pm
269
268
#else
@@ -357,7 +356,7 @@ static struct platform_driver bd9571mwv_regulator_driver = {
357
356
.pm = DEV_PM_OPS ,
358
357
},
359
358
.probe = bd9571mwv_regulator_probe ,
360
- .remove = bd9571mwv_regulator_remove ,
359
+ .remove_new = bd9571mwv_regulator_remove ,
361
360
.id_table = bd9571mwv_regulator_id_table ,
362
361
};
363
362
module_platform_driver (bd9571mwv_regulator_driver );
Original file line number Diff line number Diff line change @@ -469,11 +469,9 @@ static int db8500_regulator_probe(struct platform_device *pdev)
469
469
return 0 ;
470
470
}
471
471
472
- static int db8500_regulator_remove (struct platform_device * pdev )
472
+ static void db8500_regulator_remove (struct platform_device * pdev )
473
473
{
474
474
ux500_regulator_debug_exit ();
475
-
476
- return 0 ;
477
475
}
478
476
479
477
static struct platform_driver db8500_regulator_driver = {
@@ -482,7 +480,7 @@ static struct platform_driver db8500_regulator_driver = {
482
480
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
483
481
},
484
482
.probe = db8500_regulator_probe ,
485
- .remove = db8500_regulator_remove ,
483
+ .remove_new = db8500_regulator_remove ,
486
484
};
487
485
488
486
static int __init db8500_regulator_init (void )
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ static int stm32_vrefbuf_probe(struct platform_device *pdev)
233
233
return ret ;
234
234
}
235
235
236
- static int stm32_vrefbuf_remove (struct platform_device * pdev )
236
+ static void stm32_vrefbuf_remove (struct platform_device * pdev )
237
237
{
238
238
struct regulator_dev * rdev = platform_get_drvdata (pdev );
239
239
struct stm32_vrefbuf * priv = rdev_get_drvdata (rdev );
@@ -244,8 +244,6 @@ static int stm32_vrefbuf_remove(struct platform_device *pdev)
244
244
pm_runtime_disable (& pdev -> dev );
245
245
pm_runtime_set_suspended (& pdev -> dev );
246
246
pm_runtime_put_noidle (& pdev -> dev );
247
-
248
- return 0 ;
249
247
};
250
248
251
249
static int __maybe_unused stm32_vrefbuf_runtime_suspend (struct device * dev )
@@ -282,7 +280,7 @@ MODULE_DEVICE_TABLE(of, stm32_vrefbuf_of_match);
282
280
283
281
static struct platform_driver stm32_vrefbuf_driver = {
284
282
.probe = stm32_vrefbuf_probe ,
285
- .remove = stm32_vrefbuf_remove ,
283
+ .remove_new = stm32_vrefbuf_remove ,
286
284
.driver = {
287
285
.name = "stm32-vrefbuf" ,
288
286
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ static int uniphier_regulator_probe(struct platform_device *pdev)
115
115
return ret ;
116
116
}
117
117
118
- static int uniphier_regulator_remove (struct platform_device * pdev )
118
+ static void uniphier_regulator_remove (struct platform_device * pdev )
119
119
{
120
120
struct uniphier_regulator_priv * priv = platform_get_drvdata (pdev );
121
121
int i ;
@@ -124,8 +124,6 @@ static int uniphier_regulator_remove(struct platform_device *pdev)
124
124
reset_control_assert (priv -> rst [i ]);
125
125
126
126
clk_bulk_disable_unprepare (priv -> data -> nclks , priv -> clk );
127
-
128
- return 0 ;
129
127
}
130
128
131
129
/* USB3 controller data */
@@ -209,7 +207,7 @@ MODULE_DEVICE_TABLE(of, uniphier_regulator_match);
209
207
210
208
static struct platform_driver uniphier_regulator_driver = {
211
209
.probe = uniphier_regulator_probe ,
212
- .remove = uniphier_regulator_remove ,
210
+ .remove_new = uniphier_regulator_remove ,
213
211
.driver = {
214
212
.name = "uniphier-regulator" ,
215
213
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
Original file line number Diff line number Diff line change @@ -194,16 +194,14 @@ static int regulator_userspace_consumer_probe(struct platform_device *pdev)
194
194
return ret ;
195
195
}
196
196
197
- static int regulator_userspace_consumer_remove (struct platform_device * pdev )
197
+ static void regulator_userspace_consumer_remove (struct platform_device * pdev )
198
198
{
199
199
struct userspace_consumer_data * data = platform_get_drvdata (pdev );
200
200
201
201
sysfs_remove_group (& pdev -> dev .kobj , & attr_group );
202
202
203
203
if (data -> enabled && !data -> no_autoswitch )
204
204
regulator_bulk_disable (data -> num_supplies , data -> supplies );
205
-
206
- return 0 ;
207
205
}
208
206
209
207
static const struct of_device_id regulator_userspace_consumer_of_match [] = {
@@ -213,7 +211,7 @@ static const struct of_device_id regulator_userspace_consumer_of_match[] = {
213
211
214
212
static struct platform_driver regulator_userspace_consumer_driver = {
215
213
.probe = regulator_userspace_consumer_probe ,
216
- .remove = regulator_userspace_consumer_remove ,
214
+ .remove_new = regulator_userspace_consumer_remove ,
217
215
.driver = {
218
216
.name = "reg-userspace-consumer" ,
219
217
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
Original file line number Diff line number Diff line change @@ -345,21 +345,19 @@ static int regulator_virtual_probe(struct platform_device *pdev)
345
345
return 0 ;
346
346
}
347
347
348
- static int regulator_virtual_remove (struct platform_device * pdev )
348
+ static void regulator_virtual_remove (struct platform_device * pdev )
349
349
{
350
350
struct virtual_consumer_data * drvdata = platform_get_drvdata (pdev );
351
351
352
352
sysfs_remove_group (& pdev -> dev .kobj , & regulator_virtual_attr_group );
353
353
354
354
if (drvdata -> enabled )
355
355
regulator_disable (drvdata -> regulator );
356
-
357
- return 0 ;
358
356
}
359
357
360
358
static struct platform_driver regulator_virtual_consumer_driver = {
361
359
.probe = regulator_virtual_probe ,
362
- .remove = regulator_virtual_remove ,
360
+ .remove_new = regulator_virtual_remove ,
363
361
.driver = {
364
362
.name = "reg-virt-consumer" ,
365
363
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
Original file line number Diff line number Diff line change @@ -1158,14 +1158,12 @@ static int wm8350_regulator_probe(struct platform_device *pdev)
1158
1158
return 0 ;
1159
1159
}
1160
1160
1161
- static int wm8350_regulator_remove (struct platform_device * pdev )
1161
+ static void wm8350_regulator_remove (struct platform_device * pdev )
1162
1162
{
1163
1163
struct regulator_dev * rdev = platform_get_drvdata (pdev );
1164
1164
struct wm8350 * wm8350 = rdev_get_drvdata (rdev );
1165
1165
1166
1166
wm8350_free_irq (wm8350 , wm8350_reg [pdev -> id ].irq , rdev );
1167
-
1168
- return 0 ;
1169
1167
}
1170
1168
1171
1169
int wm8350_register_regulator (struct wm8350 * wm8350 , int reg ,
@@ -1306,7 +1304,7 @@ EXPORT_SYMBOL_GPL(wm8350_register_led);
1306
1304
1307
1305
static struct platform_driver wm8350_regulator_driver = {
1308
1306
.probe = wm8350_regulator_probe ,
1309
- .remove = wm8350_regulator_remove ,
1307
+ .remove_new = wm8350_regulator_remove ,
1310
1308
.driver = {
1311
1309
.name = "wm8350-regulator" ,
1312
1310
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
You can’t perform that action at this time.
0 commit comments