]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/eeh: Remove unused eeh_pcid_name()
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:31 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:38 +0000 (20:43 +1000)
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c

index 54333f6c9d67d8882610665c88dd5fd6a683c361..ca9a73fe9cc5486c79db29aceebff4897c5bd54e 100644 (file)
@@ -39,20 +39,6 @@ struct eeh_rmv_data {
        int removed;
 };
 
-/**
- * eeh_pcid_name - Retrieve name of PCI device driver
- * @pdev: PCI device
- *
- * This routine is used to retrieve the name of PCI device driver
- * if that's valid.
- */
-static inline const char *eeh_pcid_name(struct pci_dev *pdev)
-{
-       if (pdev && pdev->dev.driver)
-               return pdev->dev.driver->name;
-       return "";
-}
-
 /**
  * eeh_pcid_get - Get the PCI device driver
  * @pdev: PCI device