aboutsummaryrefslogtreecommitdiffstats
path: root/p19.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-06 14:45:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-06 14:45:51 +0200
commit6e287ace225948565fdcbe3c5cc75d3843af79d0 (patch)
treec8da80c9a0686704f6abacaf5677087bff5e8370 /p19.patch
parent40a2bc5b5c03c7219f40be1f5be51089a156b974 (diff)
downloadpatches-6e287ace225948565fdcbe3c5cc75d3843af79d0.tar.gz
cleaned up the bus_type.dev_attrs patch series
Diffstat (limited to 'p19.patch')
-rw-r--r--p19.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/p19.patch b/p19.patch
deleted file mode 100644
index 0b318722de08f4..00000000000000
--- a/p19.patch
+++ /dev/null
@@ -1,52 +0,0 @@
----
- arch/mips/sgi-ip22/ip22-gio.c | 16 ++++++++++------
- 1 file changed, 10 insertions(+), 6 deletions(-)
-
---- a/arch/mips/sgi-ip22/ip22-gio.c
-+++ b/arch/mips/sgi-ip22/ip22-gio.c
-@@ -169,6 +169,7 @@ static ssize_t modalias_show(struct devi
-
- return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
- }
-+static DEVICE_ATTR_RO(modalias);
-
- static ssize_t name_show(struct device *dev,
- struct device_attribute *attr, char *buf)
-@@ -178,6 +179,7 @@ static ssize_t name_show(struct device *
- giodev = to_gio_device(dev);
- return sprintf(buf, "%s", giodev->name);
- }
-+static DEVICE_ATTR_RO(name);
-
- static ssize_t id_show(struct device *dev,
- struct device_attribute *attr, char *buf)
-@@ -187,13 +189,15 @@ static ssize_t id_show(struct device *de
- giodev = to_gio_device(dev);
- return sprintf(buf, "%x", giodev->id.id);
- }
-+static DEVICE_ATTR_RO(id);
-
--static struct device_attribute gio_dev_attrs[] = {
-- __ATTR_RO(modalias),
-- __ATTR_RO(name),
-- __ATTR_RO(id),
-- __ATTR_NULL,
-+static struct attribute *gio_dev_attrs[] = {
-+ &dev_attr_modalias.attr,
-+ &dev_attr_name.attr,
-+ &dev_attr_id.attr,
-+ NULL,
- };
-+ATTRIBUTE_GROUPS(gio_dev);
-
- static int gio_device_uevent(struct device *dev, struct kobj_uevent_env *env)
- {
-@@ -374,7 +378,7 @@ static void ip22_check_gio(int slotno, u
-
- static struct bus_type gio_bus_type = {
- .name = "gio",
-- .dev_attrs = gio_dev_attrs,
-+ .dev_groups = gio_dev_groups,
- .match = gio_bus_match,
- .probe = gio_device_probe,
- .remove = gio_device_remove,