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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user