X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fpci.h;h=115fb7ba508907ce85704f1f2a9eb7bac5b9be4c;hb=2fc90f6133a87da8177636866557d4cc5f56e661;hp=d304ddf412d064750956d9ee689fcb42a4b86706;hpb=c3cb5e193937c7aa50c323e7933507020bd26340;p=~andy%2Flinux diff --git a/include/linux/pci.h b/include/linux/pci.h index d304ddf412d..115fb7ba508 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1145,7 +1145,7 @@ static inline void pci_set_drvdata(struct pci_dev *pdev, void *data) /* If you want to know what to call your pci_dev, ask this function. * Again, it's a wrapper around the generic device. */ -static inline const char *pci_name(struct pci_dev *pdev) +static inline const char *pci_name(const struct pci_dev *pdev) { return dev_name(&pdev->dev); }