author: Bartosz Golaszewski <bgolaszewski@baylibre.com> 2020-06-29 14:03:39 +0200
committer: David S. Miller <davem@davemloft.net> 2020-06-30 15:57:34 -0700
commit: fe189519e4d3ce655efa0bc64a6bed3f6f1ad1c2
parent: d10d607f504bc7d0a6f69867a8eef0daa453dab7
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/net/devres.c b/net/devres.c
index 57a6a88d11f6..1f9be2133787 100644
--- a/net/devres.c
+++ b/net/devres.c
@@ -39,7 +39,7 @@ struct net_device *devm_alloc_etherdev_mqs(struct device *dev, int sizeof_priv,
}
EXPORT_SYMBOL(devm_alloc_etherdev_mqs);
-static void devm_netdev_release(struct device *dev, void *this)
+static void devm_unregister_netdev(struct device *dev, void *this)
{
struct net_device_devres *res = this;
@@ -77,7 +77,7 @@ int devm_register_netdev(struct device *dev, struct net_device *ndev)
netdev_devres_match, ndev)))
return -EINVAL;
- dr = devres_alloc(devm_netdev_release, sizeof(*dr), GFP_KERNEL);
+ dr = devres_alloc(devm_unregister_netdev, sizeof(*dr), GFP_KERNEL);
if (!dr)
return -ENOMEM;