Browse Source

[PATCH] PCI: fix show_modalias() function due to attribute change

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 20 năm trước cách đây
mục cha
commit
87c8a4433b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/pci/pci-sysfs.c

+ 1 - 1
drivers/pci/pci-sysfs.c

@@ -73,7 +73,7 @@ resource_show(struct device * dev, struct device_attribute *attr, char * buf)
 	return (str - 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);
 	struct pci_dev *pci_dev = to_pci_dev(dev);