crypto: hisilicon - use dev_driver_string() instead of pci_dev->driver->name
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 12 Oct 2021 22:51:53 +0000 (17:51 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Oct 2021 23:19:53 +0000 (18:19 -0500)
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>
drivers/crypto/hisilicon/qm.c

index 369562d..8f361e5 100644 (file)
@@ -3085,7 +3085,7 @@ static int qm_alloc_uacce(struct hisi_qm *qm)
        };
        int ret;
 
-       ret = strscpy(interface.name, pdev->driver->name,
+       ret = strscpy(interface.name, dev_driver_string(&pdev->dev),
                      sizeof(interface.name));
        if (ret < 0)
                return -ENAMETOOLONG;