diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-22 17:08:18 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-22 17:08:18 +0100 |
| commit | e7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e (patch) | |
| tree | 72d317ef93f50aa80af2f67c9d109e7ff59413ff /c02.patch | |
| parent | 08ba5e5e533732546b64764231406dd6151342c1 (diff) | |
| download | patches-e7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e.tar.gz | |
lots of patches and fixes added and made
Diffstat (limited to 'c02.patch')
| -rw-r--r-- | c02.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/c02.patch b/c02.patch new file mode 100644 index 00000000000000..fc5644f8435828 --- /dev/null +++ b/c02.patch @@ -0,0 +1,32 @@ +--- + drivers/base/firmware_class.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +--- a/drivers/base/firmware_class.c ++++ b/drivers/base/firmware_class.c +@@ -546,11 +546,13 @@ static ssize_t timeout_store(struct clas + + return count; + } ++static CLASS_ATTR_RW(timeout); + +-static struct class_attribute firmware_class_attrs[] = { +- __ATTR_RW(timeout), +- __ATTR_NULL ++static struct attribute *firmware_class_attrs[] = { ++ &class_attr_timeout.attr, ++ NULL, + }; ++ATTRIBUTE_GROUPS(firmware_class); + + static void fw_dev_release(struct device *dev) + { +@@ -585,7 +587,7 @@ static int firmware_uevent(struct device + + static struct class firmware_class = { + .name = "firmware", +- .class_attrs = firmware_class_attrs, ++ .class_groups = firmware_class_groups, + .dev_uevent = firmware_uevent, + .dev_release = fw_dev_release, + }; |
