aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 96ebaa8d80e3..4c80dc3f2990 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -996,9 +996,9 @@ static inline void pci_set_drvdata(struct pci_dev *pdev, void *data)
996/* If you want to know what to call your pci_dev, ask this function. 996/* If you want to know what to call your pci_dev, ask this function.
997 * Again, it's a wrapper around the generic device. 997 * Again, it's a wrapper around the generic device.
998 */ 998 */
999static inline char *pci_name(struct pci_dev *pdev) 999static inline const char *pci_name(struct pci_dev *pdev)
1000{ 1000{
1001 return pdev->dev.bus_id; 1001 return dev_name(&pdev->dev);
1002} 1002}
1003 1003
1004 1004