diff options
Diffstat (limited to 'drivers/rtc/rtc-m48t59.c')
-rw-r--r-- | drivers/rtc/rtc-m48t59.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index 2bad1637330a..cd0bbc0e8038 100644 --- a/drivers/rtc/rtc-m48t59.c +++ b/drivers/rtc/rtc-m48t59.c | |||
@@ -353,11 +353,12 @@ static ssize_t m48t59_nvram_write(struct kobject *kobj, | |||
353 | static struct bin_attribute m48t59_nvram_attr = { | 353 | static struct bin_attribute m48t59_nvram_attr = { |
354 | .attr = { | 354 | .attr = { |
355 | .name = "nvram", | 355 | .name = "nvram", |
356 | .mode = S_IRUGO | S_IWUGO, | 356 | .mode = S_IRUGO | S_IWUSR, |
357 | .owner = THIS_MODULE, | 357 | .owner = THIS_MODULE, |
358 | }, | 358 | }, |
359 | .read = m48t59_nvram_read, | 359 | .read = m48t59_nvram_read, |
360 | .write = m48t59_nvram_write, | 360 | .write = m48t59_nvram_write, |
361 | .size = M48T59_NVRAM_SIZE, | ||
361 | }; | 362 | }; |
362 | 363 | ||
363 | static int __devinit m48t59_rtc_probe(struct platform_device *pdev) | 364 | static int __devinit m48t59_rtc_probe(struct platform_device *pdev) |