diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-10-01 20:11:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-03 02:22:49 +0300 |
commit | 84c91482eec419726ab6743d97816084a3e815cc (patch) | |
tree | 752262c845ad3b25b9260c459a2d08c34a6c6971 /drivers/s390/net/qeth_core_sys.c | |
parent | 50144f675363c368400eedd52c6680163b3260eb (diff) | |
download | linux-84c91482eec419726ab6743d97816084a3e815cc.tar.xz |
s390/qeth: use netdev_name()
Replace our custom version of netdev_name().
Once we started to allocate the netdev at probe time with
commit d3d1b205e89f ("s390/qeth: allocate netdevice early"), this
stopped working as intended anyway.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_sys.c')
-rw-r--r-- | drivers/s390/net/qeth_core_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_sys.c b/drivers/s390/net/qeth_core_sys.c index 7cc5649dfffe..4441b3393eaf 100644 --- a/drivers/s390/net/qeth_core_sys.c +++ b/drivers/s390/net/qeth_core_sys.c @@ -52,7 +52,7 @@ static ssize_t qeth_dev_if_name_show(struct device *dev, { struct qeth_card *card = dev_get_drvdata(dev); - return sprintf(buf, "%s\n", QETH_CARD_IFNAME(card)); + return sprintf(buf, "%s\n", netdev_name(card->dev)); } static DEVICE_ATTR(if_name, 0444, qeth_dev_if_name_show, NULL); |