aboutsummaryrefslogtreecommitdiffstats
path: root/p11.patch
diff options
Diffstat (limited to 'p11.patch')
-rw-r--r--p11.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/p11.patch b/p11.patch
new file mode 100644
index 00000000000000..3f26572790b47b
--- /dev/null
+++ b/p11.patch
@@ -0,0 +1,32 @@
+---
+ drivers/hsi/hsi.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+--- a/drivers/hsi/hsi.c
++++ b/drivers/hsi/hsi.c
+@@ -33,11 +33,13 @@ static ssize_t modalias_show(struct devi
+ {
+ return sprintf(buf, "hsi:%s\n", dev_name(dev));
+ }
++static DEVICE_ATTR_RO(modalias);
+
+-static struct device_attribute hsi_bus_dev_attrs[] = {
+- __ATTR_RO(modalias),
+- __ATTR_NULL,
++static struct attribute *hsi_bus_dev_attrs[] = {
++ &dev_attr_modalias.attr,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(hsi_bus_dev);
+
+ static int hsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
+ {
+@@ -53,7 +55,7 @@ static int hsi_bus_match(struct device *
+
+ static struct bus_type hsi_bus_type = {
+ .name = "hsi",
+- .dev_attrs = hsi_bus_dev_attrs,
++ .dev_groups = hsi_bus_dev_groups,
+ .match = hsi_bus_match,
+ .uevent = hsi_bus_uevent,
+ };