diff options
Diffstat (limited to 'drivers/rtc/rtc-m48t59.c')
-rw-r--r-- | drivers/rtc/rtc-m48t59.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index bf60d35f580b..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) |
@@ -464,7 +465,7 @@ static int __devexit m48t59_rtc_remove(struct platform_device *pdev) | |||
464 | return 0; | 465 | return 0; |
465 | } | 466 | } |
466 | 467 | ||
467 | static struct platform_driver m48t59_rtc_platdrv = { | 468 | static struct platform_driver m48t59_rtc_driver = { |
468 | .driver = { | 469 | .driver = { |
469 | .name = "rtc-m48t59", | 470 | .name = "rtc-m48t59", |
470 | .owner = THIS_MODULE, | 471 | .owner = THIS_MODULE, |
@@ -475,12 +476,12 @@ static struct platform_driver m48t59_rtc_platdrv = { | |||
475 | 476 | ||
476 | static int __init m48t59_rtc_init(void) | 477 | static int __init m48t59_rtc_init(void) |
477 | { | 478 | { |
478 | return platform_driver_register(&m48t59_rtc_platdrv); | 479 | return platform_driver_register(&m48t59_rtc_driver); |
479 | } | 480 | } |
480 | 481 | ||
481 | static void __exit m48t59_rtc_exit(void) | 482 | static void __exit m48t59_rtc_exit(void) |
482 | { | 483 | { |
483 | platform_driver_unregister(&m48t59_rtc_platdrv); | 484 | platform_driver_unregister(&m48t59_rtc_driver); |
484 | } | 485 | } |
485 | 486 | ||
486 | module_init(m48t59_rtc_init); | 487 | module_init(m48t59_rtc_init); |