]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/eeh: Use dev_driver_string() instead of struct pci_dev->driver->name
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 4 Oct 2021 12:59:29 +0000 (14:59 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Oct 2021 22:50:12 +0000 (17:50 -0500)
commit5a72431ec318ed38b02a413b1e4ab934e5d3451e
treeb2a4b44d07869cbf6acd73c0cc59f5e223b424b2
parent7c3b2c933a916e32e9c8b56074a47c1b3f3e7cbe
powerpc/eeh: Use dev_driver_string() instead of struct pci_dev->driver->name

Replace pdev->driver->name by dev_driver_string() for the corresponding
struct device.  This is a step toward removing pci_dev->driver.

Move the function nearer its only user and instead of the ?: operator use a
normal "if" which is more readable.

Link: https://lore.kernel.org/r/20211004125935.2300113-6-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>
arch/powerpc/include/asm/ppc-pci.h
arch/powerpc/kernel/eeh.c