diff options
| -rw-r--r-- | drivers/platform/x86/toshiba_haps.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/platform/x86/toshiba_haps.c b/drivers/platform/x86/toshiba_haps.c index db6cc53f8c55..7f2afc6b5eb9 100644 --- a/drivers/platform/x86/toshiba_haps.c +++ b/drivers/platform/x86/toshiba_haps.c | |||
| @@ -100,6 +100,7 @@ static ssize_t protection_level_store(struct device *dev, | |||
| 100 | 100 | ||
| 101 | return count; | 101 | return count; |
| 102 | } | 102 | } |
| 103 | static DEVICE_ATTR_RW(protection_level); | ||
| 103 | 104 | ||
| 104 | static ssize_t reset_protection_store(struct device *dev, | 105 | static ssize_t reset_protection_store(struct device *dev, |
| 105 | struct device_attribute *attr, | 106 | struct device_attribute *attr, |
| @@ -123,10 +124,7 @@ static ssize_t reset_protection_store(struct device *dev, | |||
| 123 | 124 | ||
| 124 | return count; | 125 | return count; |
| 125 | } | 126 | } |
| 126 | 127 | static DEVICE_ATTR_WO(reset_protection); | |
| 127 | static DEVICE_ATTR(protection_level, S_IRUGO | S_IWUSR, | ||
| 128 | protection_level_show, protection_level_store); | ||
| 129 | static DEVICE_ATTR(reset_protection, S_IWUSR, NULL, reset_protection_store); | ||
| 130 | 128 | ||
| 131 | static struct attribute *haps_attributes[] = { | 129 | static struct attribute *haps_attributes[] = { |
| 132 | &dev_attr_protection_level.attr, | 130 | &dev_attr_protection_level.attr, |
