瀏覽代碼

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

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 20 年之前
父節點
當前提交
4893e9d1cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/core/sysfs.c

+ 1 - 1
drivers/usb/core/sysfs.c

@@ -286,7 +286,7 @@ static ssize_t show_interface_string(struct device *dev, struct device_attribute
 }
 static DEVICE_ATTR(interface, S_IRUGO, show_interface_string, NULL);
 
-static ssize_t show_modalias(struct device *dev, char *buf)
+static ssize_t show_modalias(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	struct usb_interface *intf;
 	struct usb_device *udev;