Skip to contentSkip to conversation

move of_platform_driver initialisations:

PATCH Applied Stephen Rothwell 2 participants 2 messages Oct 11, 2007 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move of_platform_driver initialisations:

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.

---
 arch/sparc/kernel/time.c    |    4 +++-
 arch/sparc64/kernel/auxio.c |    4 +++-
 arch/sparc64/kernel/power.c |    4 +++-
 arch/sparc64/kernel/time.c  |    4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

This depends on my previous patch "Prepare to remove of_platform_driver name" for Sparc.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
arch/sparc/kernel/time.c +3 -1
index 6a25133..4bf78a5 100644
@@ -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",
+	},
 };
 
 
arch/sparc64/kernel/auxio.c +3 -1
index 7b37976..c55f029 100644
@@ -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)
arch/sparc64/kernel/power.c +3 -1
index 881a09e..850cdff 100644
@@ -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)
arch/sparc64/kernel/time.c +3 -1
index 69cad1b..cd8c740 100644
@@ -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)
Signature · 1 line
1.5.3.4