dt/net: Eliminate users of of_platform_{,un}register_driver

Get rid of users of of_platform_driver in drivers/net.  The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Grant Likely
2011-02-22 21:05:51 -07:00
parent f07eb223a0
commit 74888760d4
26 changed files with 123 additions and 128 deletions

View File

@@ -941,7 +941,7 @@ fail:
return res;
}
static int __devinit qec_sbus_probe(struct platform_device *op, const struct of_device_id *match)
static int __devinit qec_sbus_probe(struct platform_device *op)
{
return qec_ether_init(op);
}
@@ -976,7 +976,7 @@ static const struct of_device_id qec_sbus_match[] = {
MODULE_DEVICE_TABLE(of, qec_sbus_match);
static struct of_platform_driver qec_sbus_driver = {
static struct platform_driver qec_sbus_driver = {
.driver = {
.name = "qec",
.owner = THIS_MODULE,
@@ -988,12 +988,12 @@ static struct of_platform_driver qec_sbus_driver = {
static int __init qec_init(void)
{
return of_register_platform_driver(&qec_sbus_driver);
return platform_driver_register(&qec_sbus_driver);
}
static void __exit qec_exit(void)
{
of_unregister_platform_driver(&qec_sbus_driver);
platform_driver_unregister(&qec_sbus_driver);
while (root_qec_dev) {
struct sunqec *next = root_qec_dev->next_module;