[SPARC/64]: Move of_platform_driver initialisations: arch/sparc{,64}.
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Oct 2007 06:27:34 +0000 (23:27 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 14 Oct 2007 04:53:12 +0000 (21:53 -0700)
We no longer initialise the name field of the of_platform_driver, but
use the name field of the embedded device_driver's name field instead.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/time.c
arch/sparc64/kernel/auxio.c
arch/sparc64/kernel/power.c
arch/sparc64/kernel/time.c

index 6a25133216207df68d62f3cded23eddd12070079..4bf78a5e8e0f8f16bdbf7277eb31f817cb8c942f 100644 (file)
@@ -347,9 +347,11 @@ static struct of_device_id clock_match[] = {
 };
 
 static struct of_platform_driver clock_driver = {
-       .name           = "clock",
        .match_table    = clock_match,
        .probe          = clock_probe,
+       .driver         = {
+               .name   = "clock",
+       },
 };
 
 
index 7b379761e9f85fdf398444acc871ff70032aad0c..c55f0293eacdd8f6b2cbf096044886cfe1eed130 100644 (file)
@@ -148,9 +148,11 @@ static int __devinit auxio_probe(struct of_device *dev, const struct of_device_i
 }
 
 static struct of_platform_driver auxio_driver = {
-       .name           = "auxio",
        .match_table    = auxio_match,
        .probe          = auxio_probe,
+       .driver         = {
+               .name   = "auxio",
+       },
 };
 
 static int __init auxio_init(void)
index 881a09ee4c4c15ae4a2fac487184fad0a6c8fd06..850cdffdd69c8f816f7f259bfc8b628c42b3f404 100644 (file)
@@ -105,9 +105,11 @@ static struct of_device_id power_match[] = {
 };
 
 static struct of_platform_driver power_driver = {
-       .name           = "power",
        .match_table    = power_match,
        .probe          = power_probe,
+       .driver         = {
+               .name   = "power",
+       },
 };
 
 void __init power_init(void)
index 69cad1b653c14f55a57a2ec5ad0a5e2abf5ad801..cd8c740cba1da72fccf69c78736b662383e8539b 100644 (file)
@@ -764,9 +764,11 @@ static struct of_device_id clock_match[] = {
 };
 
 static struct of_platform_driver clock_driver = {
-       .name           = "clock",
        .match_table    = clock_match,
        .probe          = clock_probe,
+       .driver         = {
+               .name   = "clock",
+       },
 };
 
 static int __init clock_init(void)