aboutsummaryrefslogtreecommitdiffstats
path: root/p15.patch
diff options
Diffstat (limited to 'p15.patch')
-rw-r--r--p15.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/p15.patch b/p15.patch
new file mode 100644
index 00000000000000..40afa69b45d3a3
--- /dev/null
+++ b/p15.patch
@@ -0,0 +1,28 @@
+---
+ drivers/misc/tifm_core.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+--- a/drivers/misc/tifm_core.c
++++ b/drivers/misc/tifm_core.c
+@@ -145,15 +145,17 @@ static ssize_t type_show(struct device *
+ struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
+ return sprintf(buf, "%x", sock->type);
+ }
++static DEVICE_ATTR_RO(type);
+
+-static struct device_attribute tifm_dev_attrs[] = {
+- __ATTR(type, S_IRUGO, type_show, NULL),
+- __ATTR_NULL
++static struct attribute *tifm_dev_attrs[] = {
++ &dev_attr_type.attr,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(tifm_dev);
+
+ static struct bus_type tifm_bus_type = {
+ .name = "tifm",
+- .dev_attrs = tifm_dev_attrs,
++ .dev_groups = tifm_dev_groups,
+ .match = tifm_bus_match,
+ .uevent = tifm_uevent,
+ .probe = tifm_device_probe,