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:
@@ -3740,7 +3740,7 @@ static const struct net_device_ops ucc_geth_netdev_ops = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static int ucc_geth_probe(struct platform_device* ofdev, const struct of_device_id *match)
|
||||
static int ucc_geth_probe(struct platform_device* ofdev)
|
||||
{
|
||||
struct device *device = &ofdev->dev;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
@@ -3986,7 +3986,7 @@ static struct of_device_id ucc_geth_match[] = {
|
||||
|
||||
MODULE_DEVICE_TABLE(of, ucc_geth_match);
|
||||
|
||||
static struct of_platform_driver ucc_geth_driver = {
|
||||
static struct platform_driver ucc_geth_driver = {
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
@@ -4008,14 +4008,14 @@ static int __init ucc_geth_init(void)
|
||||
memcpy(&(ugeth_info[i]), &ugeth_primary_info,
|
||||
sizeof(ugeth_primary_info));
|
||||
|
||||
ret = of_register_platform_driver(&ucc_geth_driver);
|
||||
ret = platform_driver_register(&ucc_geth_driver);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void __exit ucc_geth_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&ucc_geth_driver);
|
||||
platform_driver_unregister(&ucc_geth_driver);
|
||||
}
|
||||
|
||||
module_init(ucc_geth_init);
|
||||
|
Reference in New Issue
Block a user