From: Greg Kroah-Hartman Date: Sun, 19 Jun 2005 10:21:43 +0000 (+0200) Subject: [PATCH] PCI: fix show_modalias() function due to attribute change X-Git-Tag: v2.6.13-rc1~68^2~583^2^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c8a4433b608261a9becdb0ce2d2f2ed4b71d05;p=linux-2.6 [PATCH] PCI: fix show_modalias() function due to attribute change Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 8b79609a3a..a15f94072a 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -73,7 +73,7 @@ resource_show(struct device * dev, struct device_attribute *attr, char * buf) return (str - buf); } -static ssize_t modalias_show(struct device *dev, char *buf) +static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { struct pci_dev *pci_dev = to_pci_dev(dev);