]> git.baikalelectronics.ru Git - kernel.git/commitdiff
[POWERPC] Move of_platform_driver initialisations: arch/powerpc
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Oct 2007 05:19:03 +0000 (15:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 11 Oct 2007 10:40:49 +0000 (20:40 +1000)
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>
arch/powerpc/platforms/pasemi/gpio_mdio.c
arch/powerpc/sysdev/axonram.c
arch/powerpc/sysdev/pmi.c

index c91a33593bb86b9b391f5bd15b68cae2b026b9bb..dae9f658122e4ef47dffa02ba5877cd73bac2c52 100644 (file)
@@ -320,10 +320,12 @@ static struct of_device_id gpio_mdio_match[] =
 
 static struct of_platform_driver gpio_mdio_driver =
 {
-       .name           = "gpio-mdio-bitbang",
        .match_table    = gpio_mdio_match,
        .probe          = gpio_mdio_probe,
        .remove         = gpio_mdio_remove,
+       .driver         = {
+               .name   = "gpio-mdio-bitbang",
+       },
 };
 
 int gpio_mdio_init(void)
index ab037a3a40db196b0e01f9a15ddf878c354be3d6..4d3ba63bba79ad6ee53cb1c49d1d1cfd23944be8 100644 (file)
@@ -324,11 +324,13 @@ static struct of_device_id axon_ram_device_id[] = {
 };
 
 static struct of_platform_driver axon_ram_driver = {
-       .owner          = THIS_MODULE,
-       .name           = AXON_RAM_MODULE_NAME,
        .match_table    = axon_ram_device_id,
        .probe          = axon_ram_probe,
-       .remove         = axon_ram_remove
+       .remove         = axon_ram_remove,
+       .driver         = {
+               .owner  = THIS_MODULE,
+               .name   = AXON_RAM_MODULE_NAME,
+       },
 };
 
 /**
index 2f91b55b775475a8c839299801b390b670c4e183..20edd1e94eff7111927fef861236f8827e002b4d 100644 (file)
@@ -205,10 +205,12 @@ static int pmi_of_remove(struct of_device *dev)
 }
 
 static struct of_platform_driver pmi_of_platform_driver = {
-       .name           = "pmi",
        .match_table    = pmi_match,
        .probe          = pmi_of_probe,
-       .remove         = pmi_of_remove
+       .remove         = pmi_of_remove,
+       .driver         = {
+               .name   = "pmi",
+       },
 };
 
 static int __init pmi_module_init(void)