diff options
author | Erez Shitrit <erezsh@mellanox.com> | 2017-04-10 11:22:29 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-20 22:19:44 +0300 |
commit | c1048aff7e62bc561603fd14ad84b975ad7085b6 (patch) | |
tree | 9fa2fa491b528f06d8144e2c3970d1f681aa7b97 /drivers/infiniband/ulp/ipoib/ipoib_fs.c | |
parent | 10adcbd2d5a085dad89ca2857e436a907c435273 (diff) | |
download | linux-c1048aff7e62bc561603fd14ad84b975ad7085b6.tar.xz |
IB/IPoIB: Use defined function for netdev_priv function
Make ipoib_priv point to netdev_priv where the code calls netdev_priv.
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_fs.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_fs.c b/drivers/infiniband/ulp/ipoib/ipoib_fs.c index 09396bd7b02d..a15664b880ed 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_fs.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_fs.c @@ -261,7 +261,7 @@ static const struct file_operations ipoib_path_fops = { void ipoib_create_debug_files(struct net_device *dev) { - struct ipoib_dev_priv *priv = netdev_priv(dev); + struct ipoib_dev_priv *priv = ipoib_priv(dev); char name[IFNAMSIZ + sizeof "_path"]; snprintf(name, sizeof name, "%s_mcg", dev->name); @@ -279,7 +279,7 @@ void ipoib_create_debug_files(struct net_device *dev) void ipoib_delete_debug_files(struct net_device *dev) { - struct ipoib_dev_priv *priv = netdev_priv(dev); + struct ipoib_dev_priv *priv = ipoib_priv(dev); WARN_ONCE(!priv->mcg_dentry, "null mcg debug file\n"); WARN_ONCE(!priv->path_dentry, "null path debug file\n"); |