mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
[SPARC/64]: Move of_platform_driver initialisations: arch/sparc{,64}.
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>
This commit is contained in:
parent
7379b42b60
commit
a2cd15586e
@ -347,9 +347,11 @@ static struct of_device_id clock_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver clock_driver = {
|
static struct of_platform_driver clock_driver = {
|
||||||
.name = "clock",
|
|
||||||
.match_table = clock_match,
|
.match_table = clock_match,
|
||||||
.probe = clock_probe,
|
.probe = clock_probe,
|
||||||
|
.driver = {
|
||||||
|
.name = "clock",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 = {
|
static struct of_platform_driver auxio_driver = {
|
||||||
.name = "auxio",
|
|
||||||
.match_table = auxio_match,
|
.match_table = auxio_match,
|
||||||
.probe = auxio_probe,
|
.probe = auxio_probe,
|
||||||
|
.driver = {
|
||||||
|
.name = "auxio",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init auxio_init(void)
|
static int __init auxio_init(void)
|
||||||
|
@ -105,9 +105,11 @@ static struct of_device_id power_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver power_driver = {
|
static struct of_platform_driver power_driver = {
|
||||||
.name = "power",
|
|
||||||
.match_table = power_match,
|
.match_table = power_match,
|
||||||
.probe = power_probe,
|
.probe = power_probe,
|
||||||
|
.driver = {
|
||||||
|
.name = "power",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init power_init(void)
|
void __init power_init(void)
|
||||||
|
@ -764,9 +764,11 @@ static struct of_device_id clock_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver clock_driver = {
|
static struct of_platform_driver clock_driver = {
|
||||||
.name = "clock",
|
|
||||||
.match_table = clock_match,
|
.match_table = clock_match,
|
||||||
.probe = clock_probe,
|
.probe = clock_probe,
|
||||||
|
.driver = {
|
||||||
|
.name = "clock",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init clock_init(void)
|
static int __init clock_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user