aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/wmi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index b13344c59808..6e02c953d888 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -693,11 +693,13 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
693 693
694 return sprintf(buf, "wmi:%s\n", guid_string); 694 return sprintf(buf, "wmi:%s\n", guid_string);
695} 695}
696static DEVICE_ATTR_RO(modalias);
696 697
697static struct device_attribute wmi_dev_attrs[] = { 698static struct attribute *wmi_attrs[] = {
698 __ATTR_RO(modalias), 699 &dev_attr_modalias.attr,
699 __ATTR_NULL 700 NULL,
700}; 701};
702ATTRIBUTE_GROUPS(wmi);
701 703
702static int wmi_dev_uevent(struct device *dev, struct kobj_uevent_env *env) 704static int wmi_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
703{ 705{
@@ -732,7 +734,7 @@ static struct class wmi_class = {
732 .name = "wmi", 734 .name = "wmi",
733 .dev_release = wmi_dev_free, 735 .dev_release = wmi_dev_free,
734 .dev_uevent = wmi_dev_uevent, 736 .dev_uevent = wmi_dev_uevent,
735 .dev_attrs = wmi_dev_attrs, 737 .dev_groups = wmi_groups,
736}; 738};
737 739
738static int wmi_create_device(const struct guid_block *gblock, 740static int wmi_create_device(const struct guid_block *gblock,