diff options
author | 2021-10-12 17:52:59 -0500 | |
---|---|---|
committer | 2021-10-12 18:20:00 -0500 | |
commit | e519d9ea62e821659d68c2f1f4d8a5c33ea70db5 (patch) | |
tree | 9281d1b5f6adca0f21345e3a09ebd04092f94525 | |
parent | crypto: hisilicon - use dev_driver_string() instead of pci_dev->driver->name (diff) | |
download | wireguard-linux-e519d9ea62e821659d68c2f1f4d8a5c33ea70db5.tar.xz wireguard-linux-e519d9ea62e821659d68c2f1f4d8a5c33ea70db5.zip |
net: hns3: use dev_driver_string() instead of pci_dev->driver->name
Replace dev->driver_name() by dev_driver_string() for the corresponding
struct device. This is a step toward removing pci_dev->driver.
[bhelgaas: split to separate patch]
Link: https://lore.kernel.org/r/20211004125935.2300113-8-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 7ea511d59e91..f279edfce3f1 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -606,7 +606,7 @@ static void hns3_get_drvinfo(struct net_device *netdev, return; } - strncpy(drvinfo->driver, h->pdev->driver->name, + strncpy(drvinfo->driver, dev_driver_string(&h->pdev->dev), sizeof(drvinfo->driver)); drvinfo->driver[sizeof(drvinfo->driver) - 1] = '\0'; |