]> Pileus Git - ~andy/linux/blobdiff - drivers/rtc/rtc-m48t59.c
Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds...
[~andy/linux] / drivers / rtc / rtc-m48t59.c
index 2bad1637330a8cdb9258e481ffa031c8492defba..cd0bbc0e8038c68c6b31798f30f820a5c558a66b 100644 (file)
@@ -353,11 +353,12 @@ static ssize_t m48t59_nvram_write(struct kobject *kobj,
 static struct bin_attribute m48t59_nvram_attr = {
        .attr = {
                .name = "nvram",
-               .mode = S_IRUGO | S_IWUGO,
+               .mode = S_IRUGO | S_IWUSR,
                .owner = THIS_MODULE,
        },
        .read = m48t59_nvram_read,
        .write = m48t59_nvram_write,
+       .size = M48T59_NVRAM_SIZE,
 };
 
 static int __devinit m48t59_rtc_probe(struct platform_device *pdev)