Skip to content

Commit 4a3a950

Browse files
author
Wolfram Sang
committed
gpio: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent e94d684 commit 4a3a950

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+0
-52
lines changed

drivers/gpio/gpio-adp5520.c

-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ static int adp5520_gpio_remove(struct platform_device *pdev)
177177
static struct platform_driver adp5520_gpio_driver = {
178178
.driver = {
179179
.name = "adp5520-gpio",
180-
.owner = THIS_MODULE,
181180
},
182181
.probe = adp5520_gpio_probe,
183182
.remove = adp5520_gpio_remove,

drivers/gpio/gpio-bcm-kona.c

-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,6 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
668668
static struct platform_driver bcm_kona_gpio_driver = {
669669
.driver = {
670670
.name = "bcm-kona-gpio",
671-
.owner = THIS_MODULE,
672671
.of_match_table = bcm_kona_gpio_of_match,
673672
},
674673
.probe = bcm_kona_gpio_probe,

drivers/gpio/gpio-clps711x.c

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ MODULE_DEVICE_TABLE(of, clps711x_gpio_ids);
8787
static struct platform_driver clps711x_gpio_driver = {
8888
.driver = {
8989
.name = "clps711x-gpio",
90-
.owner = THIS_MODULE,
9190
.of_match_table = of_match_ptr(clps711x_gpio_ids),
9291
},
9392
.probe = clps711x_gpio_probe,

drivers/gpio/gpio-crystalcove.c

-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ static struct platform_driver crystalcove_gpio_driver = {
379379
.remove = crystalcove_gpio_remove,
380380
.driver = {
381381
.name = "crystal_cove_gpio",
382-
.owner = THIS_MODULE,
383382
},
384383
};
385384

drivers/gpio/gpio-cs5535.c

-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ static int cs5535_gpio_remove(struct platform_device *pdev)
372372
static struct platform_driver cs5535_gpio_driver = {
373373
.driver = {
374374
.name = DRV_NAME,
375-
.owner = THIS_MODULE,
376375
},
377376
.probe = cs5535_gpio_probe,
378377
.remove = cs5535_gpio_remove,

drivers/gpio/gpio-da9052.c

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ static struct platform_driver da9052_gpio_driver = {
246246
.remove = da9052_gpio_remove,
247247
.driver = {
248248
.name = "da9052-gpio",
249-
.owner = THIS_MODULE,
250249
},
251250
};
252251

drivers/gpio/gpio-da9055.c

-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ static struct platform_driver da9055_gpio_driver = {
183183
.remove = da9055_gpio_remove,
184184
.driver = {
185185
.name = "da9055-gpio",
186-
.owner = THIS_MODULE,
187186
},
188187
};
189188

drivers/gpio/gpio-davinci.c

-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ static struct platform_driver davinci_gpio_driver = {
619619
.probe = davinci_gpio_probe,
620620
.driver = {
621621
.name = "davinci_gpio",
622-
.owner = THIS_MODULE,
623622
.of_match_table = of_match_ptr(davinci_gpio_ids),
624623
},
625624
};

drivers/gpio/gpio-dwapb.c

-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ static SIMPLE_DEV_PM_OPS(dwapb_gpio_pm_ops, dwapb_gpio_suspend,
703703
static struct platform_driver dwapb_gpio_driver = {
704704
.driver = {
705705
.name = "gpio-dwapb",
706-
.owner = THIS_MODULE,
707706
.pm = &dwapb_gpio_pm_ops,
708707
.of_match_table = of_match_ptr(dwapb_of_match),
709708
},

drivers/gpio/gpio-em.c

-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ static struct platform_driver em_gio_device_driver = {
428428
.driver = {
429429
.name = "em_gio",
430430
.of_match_table = em_gio_dt_ids,
431-
.owner = THIS_MODULE,
432431
}
433432
};
434433

drivers/gpio/gpio-ep93xx.c

-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ static int ep93xx_gpio_probe(struct platform_device *pdev)
374374
static struct platform_driver ep93xx_gpio_driver = {
375375
.driver = {
376376
.name = "gpio-ep93xx",
377-
.owner = THIS_MODULE,
378377
},
379378
.probe = ep93xx_gpio_probe,
380379
};

drivers/gpio/gpio-f7188x.c

-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ f7188x_gpio_device_add(const struct f7188x_sio *sio)
417417

418418
static struct platform_driver f7188x_gpio_driver = {
419419
.driver = {
420-
.owner = THIS_MODULE,
421420
.name = DRVNAME,
422421
},
423422
.probe = f7188x_gpio_probe,

drivers/gpio/gpio-ge.c

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ static int __init gef_gpio_probe(struct platform_device *pdev)
120120
static struct platform_driver gef_gpio_driver = {
121121
.driver = {
122122
.name = "gef-gpio",
123-
.owner = THIS_MODULE,
124123
.of_match_table = gef_gpio_ids,
125124
},
126125
};

drivers/gpio/gpio-grgpio.c

-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ MODULE_DEVICE_TABLE(of, grgpio_match);
490490
static struct platform_driver grgpio_driver = {
491491
.driver = {
492492
.name = "grgpio",
493-
.owner = THIS_MODULE,
494493
.of_match_table = grgpio_match,
495494
},
496495
.probe = grgpio_probe,

drivers/gpio/gpio-ich.c

-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ static int ichx_gpio_remove(struct platform_device *pdev)
526526

527527
static struct platform_driver ichx_gpio_driver = {
528528
.driver = {
529-
.owner = THIS_MODULE,
530529
.name = DRV_NAME,
531530
},
532531
.probe = ichx_gpio_probe,

drivers/gpio/gpio-iop.c

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ static int iop3xx_gpio_probe(struct platform_device *pdev)
120120
static struct platform_driver iop3xx_gpio_driver = {
121121
.driver = {
122122
.name = "gpio-iop",
123-
.owner = THIS_MODULE,
124123
},
125124
.probe = iop3xx_gpio_probe,
126125
};

drivers/gpio/gpio-janz-ttl.c

-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ static int ttl_remove(struct platform_device *pdev)
203203
static struct platform_driver ttl_driver = {
204204
.driver = {
205205
.name = DRV_NAME,
206-
.owner = THIS_MODULE,
207206
},
208207
.probe = ttl_probe,
209208
.remove = ttl_remove,

drivers/gpio/gpio-kempld.c

-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ static int kempld_gpio_remove(struct platform_device *pdev)
206206
static struct platform_driver kempld_gpio_driver = {
207207
.driver = {
208208
.name = "kempld-gpio",
209-
.owner = THIS_MODULE,
210209
},
211210
.probe = kempld_gpio_probe,
212211
.remove = kempld_gpio_remove,

drivers/gpio/gpio-lp3943.c

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ static struct platform_driver lp3943_gpio_driver = {
231231
.remove = lp3943_gpio_remove,
232232
.driver = {
233233
.name = "lp3943-gpio",
234-
.owner = THIS_MODULE,
235234
.of_match_table = lp3943_gpio_of_match,
236235
},
237236
};

drivers/gpio/gpio-lpc32xx.c

-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,6 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = {
569569
static struct platform_driver lpc32xx_gpio_driver = {
570570
.driver = {
571571
.name = "lpc32xx-gpio",
572-
.owner = THIS_MODULE,
573572
.of_match_table = of_match_ptr(lpc32xx_gpio_of_match),
574573
},
575574
.probe = lpc32xx_gpio_probe,

drivers/gpio/gpio-lynxpoint.c

-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ static struct platform_driver lp_gpio_driver = {
450450
.remove = lp_gpio_remove,
451451
.driver = {
452452
.name = "lp_gpio",
453-
.owner = THIS_MODULE,
454453
.pm = &lp_gpio_pm_ops,
455454
.acpi_match_table = ACPI_PTR(lynxpoint_gpio_acpi_match),
456455
},

drivers/gpio/gpio-mm-lantiq.c

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ static struct platform_driver ltq_mm_driver = {
145145
.probe = ltq_mm_probe,
146146
.driver = {
147147
.name = "gpio-mm-ltq",
148-
.owner = THIS_MODULE,
149148
.of_match_table = ltq_mm_match,
150149
},
151150
};

drivers/gpio/gpio-moxart.c

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ static const struct of_device_id moxart_gpio_match[] = {
142142
static struct platform_driver moxart_gpio_driver = {
143143
.driver = {
144144
.name = "moxart-gpio",
145-
.owner = THIS_MODULE,
146145
.of_match_table = moxart_gpio_match,
147146
},
148147
.probe = moxart_gpio_probe,

drivers/gpio/gpio-mpc5200.c

-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = {
192192
static struct platform_driver mpc52xx_wkup_gpiochip_driver = {
193193
.driver = {
194194
.name = "mpc5200-gpio-wkup",
195-
.owner = THIS_MODULE,
196195
.of_match_table = mpc52xx_wkup_gpiochip_match,
197196
},
198197
.probe = mpc52xx_wkup_gpiochip_probe,
@@ -347,7 +346,6 @@ static const struct of_device_id mpc52xx_simple_gpiochip_match[] = {
347346
static struct platform_driver mpc52xx_simple_gpiochip_driver = {
348347
.driver = {
349348
.name = "mpc5200-gpio",
350-
.owner = THIS_MODULE,
351349
.of_match_table = mpc52xx_simple_gpiochip_match,
352350
},
353351
.probe = mpc52xx_simple_gpiochip_probe,

drivers/gpio/gpio-msic.c

-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ static int platform_msic_gpio_probe(struct platform_device *pdev)
321321
static struct platform_driver platform_msic_gpio_driver = {
322322
.driver = {
323323
.name = "msic_gpio",
324-
.owner = THIS_MODULE,
325324
},
326325
.probe = platform_msic_gpio_probe,
327326
};

drivers/gpio/gpio-msm-v1.c

-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,6 @@ MODULE_DEVICE_TABLE(platform, gpio_msm_v1_device_ids);
701701
static struct platform_driver gpio_msm_v1_driver = {
702702
.driver = {
703703
.name = "gpio-msm-v1",
704-
.owner = THIS_MODULE,
705704
},
706705
.probe = gpio_msm_v1_probe,
707706
.id_table = gpio_msm_v1_device_ids,

drivers/gpio/gpio-msm-v2.c

-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ static struct platform_driver msm_gpio_driver = {
450450
.remove = msm_gpio_remove,
451451
.driver = {
452452
.name = "msmgpio",
453-
.owner = THIS_MODULE,
454453
.of_match_table = msm_gpio_of_match,
455454
},
456455
};

drivers/gpio/gpio-mvebu.c

-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,6 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
731731
static struct platform_driver mvebu_gpio_driver = {
732732
.driver = {
733733
.name = "mvebu-gpio",
734-
.owner = THIS_MODULE,
735734
.of_match_table = mvebu_gpio_of_match,
736735
},
737736
.probe = mvebu_gpio_probe,

drivers/gpio/gpio-mxc.c

-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ static int mxc_gpio_probe(struct platform_device *pdev)
496496
static struct platform_driver mxc_gpio_driver = {
497497
.driver = {
498498
.name = "gpio-mxc",
499-
.owner = THIS_MODULE,
500499
.of_match_table = mxc_gpio_dt_ids,
501500
},
502501
.probe = mxc_gpio_probe,

drivers/gpio/gpio-mxs.c

-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ static int mxs_gpio_probe(struct platform_device *pdev)
338338
static struct platform_driver mxs_gpio_driver = {
339339
.driver = {
340340
.name = "gpio-mxs",
341-
.owner = THIS_MODULE,
342341
.of_match_table = mxs_gpio_dt_ids,
343342
},
344343
.probe = mxs_gpio_probe,

drivers/gpio/gpio-octeon.c

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ MODULE_DEVICE_TABLE(of, octeon_gpio_match);
144144
static struct platform_driver octeon_gpio_driver = {
145145
.driver = {
146146
.name = "octeon_gpio",
147-
.owner = THIS_MODULE,
148147
.of_match_table = octeon_gpio_match,
149148
},
150149
.probe = octeon_gpio_probe,

drivers/gpio/gpio-rc5t583.c

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ static int rc5t583_gpio_remove(struct platform_device *pdev)
155155
static struct platform_driver rc5t583_gpio_driver = {
156156
.driver = {
157157
.name = "rc5t583-gpio",
158-
.owner = THIS_MODULE,
159158
},
160159
.probe = rc5t583_gpio_probe,
161160
.remove = rc5t583_gpio_remove,

drivers/gpio/gpio-sch.c

-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ static int sch_gpio_remove(struct platform_device *pdev)
319319
static struct platform_driver sch_gpio_driver = {
320320
.driver = {
321321
.name = "sch_gpio",
322-
.owner = THIS_MODULE,
323322
},
324323
.probe = sch_gpio_probe,
325324
.remove = sch_gpio_remove,

drivers/gpio/gpio-spear-spics.c

-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ MODULE_DEVICE_TABLE(of, spics_gpio_of_match);
191191
static struct platform_driver spics_gpio_driver = {
192192
.probe = spics_gpio_probe,
193193
.driver = {
194-
.owner = THIS_MODULE,
195194
.name = "spear-spics-gpio",
196195
.of_match_table = spics_gpio_of_match,
197196
},

drivers/gpio/gpio-sta2x11.c

-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ static int gsta_probe(struct platform_device *dev)
429429
static struct platform_driver sta2x11_gpio_platform_driver = {
430430
.driver = {
431431
.name = "sta2x11-gpio",
432-
.owner = THIS_MODULE,
433432
},
434433
.probe = gsta_probe,
435434
};

drivers/gpio/gpio-stp-xway.c

-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ static struct platform_driver xway_stp_driver = {
287287
.probe = xway_stp_probe,
288288
.driver = {
289289
.name = "gpio-stp-xway",
290-
.owner = THIS_MODULE,
291290
.of_match_table = xway_stp_match,
292291
},
293292
};

drivers/gpio/gpio-syscon.c

-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ static int syscon_gpio_remove(struct platform_device *pdev)
253253
static struct platform_driver syscon_gpio_driver = {
254254
.driver = {
255255
.name = "gpio-syscon",
256-
.owner = THIS_MODULE,
257256
.of_match_table = syscon_gpio_ids,
258257
},
259258
.probe = syscon_gpio_probe,

drivers/gpio/gpio-tb10x.c

-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ static struct platform_driver tb10x_gpio_driver = {
316316
.driver = {
317317
.name = "tb10x-gpio",
318318
.of_match_table = tb10x_gpio_dt_ids,
319-
.owner = THIS_MODULE,
320319
}
321320
};
322321

drivers/gpio/gpio-tegra.c

-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
528528
static struct platform_driver tegra_gpio_driver = {
529529
.driver = {
530530
.name = "tegra-gpio",
531-
.owner = THIS_MODULE,
532531
.pm = &tegra_gpio_pm_ops,
533532
.of_match_table = tegra_gpio_of_match,
534533
},

drivers/gpio/gpio-timberdale.c

-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ static int timbgpio_remove(struct platform_device *pdev)
330330
static struct platform_driver timbgpio_platform_driver = {
331331
.driver = {
332332
.name = DRIVER_NAME,
333-
.owner = THIS_MODULE,
334333
},
335334
.probe = timbgpio_probe,
336335
.remove = timbgpio_remove,

drivers/gpio/gpio-tps65912.c

-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ static int tps65912_gpio_remove(struct platform_device *pdev)
124124
static struct platform_driver tps65912_gpio_driver = {
125125
.driver = {
126126
.name = "tps65912-gpio",
127-
.owner = THIS_MODULE,
128127
},
129128
.probe = tps65912_gpio_probe,
130129
.remove = tps65912_gpio_remove,

drivers/gpio/gpio-ts5500.c

-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ MODULE_DEVICE_TABLE(platform, ts5500_dio_ids);
452452
static struct platform_driver ts5500_dio_driver = {
453453
.driver = {
454454
.name = "ts5500-dio",
455-
.owner = THIS_MODULE,
456455
},
457456
.probe = ts5500_dio_probe,
458457
.remove = ts5500_dio_remove,

drivers/gpio/gpio-twl4030.c

-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ MODULE_ALIAS("platform:twl4030_gpio");
605605
static struct platform_driver gpio_twl4030_driver = {
606606
.driver = {
607607
.name = "twl4030_gpio",
608-
.owner = THIS_MODULE,
609608
.of_match_table = twl_gpio_match,
610609
},
611610
.probe = gpio_twl4030_probe,

drivers/gpio/gpio-twl6040.c

-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ MODULE_ALIAS("platform:twl6040-gpo");
121121
static struct platform_driver gpo_twl6040_driver = {
122122
.driver = {
123123
.name = "twl6040-gpo",
124-
.owner = THIS_MODULE,
125124
},
126125
.probe = gpo_twl6040_probe,
127126
.remove = gpo_twl6040_remove,

drivers/gpio/gpio-tz1090-pdc.c

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ static struct of_device_id tz1090_pdc_gpio_of_match[] = {
230230
static struct platform_driver tz1090_pdc_gpio_driver = {
231231
.driver = {
232232
.name = "tz1090-pdc-gpio",
233-
.owner = THIS_MODULE,
234233
.of_match_table = tz1090_pdc_gpio_of_match,
235234
},
236235
.probe = tz1090_pdc_gpio_probe,

drivers/gpio/gpio-tz1090.c

-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ static struct of_device_id tz1090_gpio_of_match[] = {
593593
static struct platform_driver tz1090_gpio_driver = {
594594
.driver = {
595595
.name = "tz1090-gpio",
596-
.owner = THIS_MODULE,
597596
.of_match_table = tz1090_gpio_of_match,
598597
},
599598
.probe = tz1090_gpio_probe,

drivers/gpio/gpio-vr41xx.c

-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ static struct platform_driver giu_device_driver = {
591591
.remove = giu_remove,
592592
.driver = {
593593
.name = "GIU",
594-
.owner = THIS_MODULE,
595594
},
596595
};
597596

drivers/gpio/gpio-vx855.c

-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ static int vx855gpio_remove(struct platform_device *pdev)
306306
static struct platform_driver vx855gpio_driver = {
307307
.driver = {
308308
.name = MODULE_NAME,
309-
.owner = THIS_MODULE,
310309
},
311310
.probe = vx855gpio_probe,
312311
.remove = vx855gpio_remove,

drivers/gpio/gpio-xgene.c

-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ MODULE_DEVICE_TABLE(of, xgene_gpio_of_match);
229229
static struct platform_driver xgene_gpio_driver = {
230230
.driver = {
231231
.name = "xgene-gpio",
232-
.owner = THIS_MODULE,
233232
.of_match_table = xgene_gpio_of_match,
234233
.pm = XGENE_GPIO_PM_OPS,
235234
},

0 commit comments

Comments
 (0)