Skip to content

Commit 84dd467

Browse files
sfrothwellpaulusmack
authored andcommitted
[POWERPC] Move of_platform_driver initialisations: arch/powerpc
We no longer initialise the name and owner fields of the of_platform_driver, but use the fields of the embedded device_driver's name field instead. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 8251b4c commit 84dd467

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎arch/powerpc/platforms/pasemi/gpio_mdio.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,12 @@ static struct of_device_id gpio_mdio_match[] =
320320

321321
static struct of_platform_driver gpio_mdio_driver =
322322
{
323-
.name = "gpio-mdio-bitbang",
324323
.match_table = gpio_mdio_match,
325324
.probe = gpio_mdio_probe,
326325
.remove = gpio_mdio_remove,
326+
.driver = {
327+
.name = "gpio-mdio-bitbang",
328+
},
327329
};
328330

329331
int gpio_mdio_init(void)

‎arch/powerpc/sysdev/axonram.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,13 @@ static struct of_device_id axon_ram_device_id[] = {
324324
};
325325

326326
static struct of_platform_driver axon_ram_driver = {
327-
.owner = THIS_MODULE,
328-
.name = AXON_RAM_MODULE_NAME,
329327
.match_table = axon_ram_device_id,
330328
.probe = axon_ram_probe,
331-
.remove = axon_ram_remove
329+
.remove = axon_ram_remove,
330+
.driver = {
331+
.owner = THIS_MODULE,
332+
.name = AXON_RAM_MODULE_NAME,
333+
},
332334
};
333335

334336
/**

‎arch/powerpc/sysdev/pmi.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ static int pmi_of_remove(struct of_device *dev)
205205
}
206206

207207
static struct of_platform_driver pmi_of_platform_driver = {
208-
.name = "pmi",
209208
.match_table = pmi_match,
210209
.probe = pmi_of_probe,
211-
.remove = pmi_of_remove
210+
.remove = pmi_of_remove,
211+
.driver = {
212+
.name = "pmi",
213+
},
212214
};
213215

214216
static int __init pmi_module_init(void)

0 commit comments

Comments
 (0)