OSDN Git Service

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 54333f6..ca9a73f 100644 (file)
@@ -40,20 +40,6 @@ struct eeh_rmv_data {
 };
 
 /**
- * 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
  *