diff options
Diffstat (limited to 'drivers/rtc/rtc-ds1305.c')
| -rw-r--r-- | drivers/rtc/rtc-ds1305.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index 9630e7d3314e..48da85e97ca4 100644 --- a/drivers/rtc/rtc-ds1305.c +++ b/drivers/rtc/rtc-ds1305.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
| 12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
| 13 | #include <linux/bcd.h> | 13 | #include <linux/bcd.h> |
| 14 | #include <linux/slab.h> | ||
| 14 | #include <linux/rtc.h> | 15 | #include <linux/rtc.h> |
| 15 | #include <linux/workqueue.h> | 16 | #include <linux/workqueue.h> |
| 16 | 17 | ||
| @@ -541,7 +542,8 @@ static void msg_init(struct spi_message *m, struct spi_transfer *x, | |||
| 541 | } | 542 | } |
| 542 | 543 | ||
| 543 | static ssize_t | 544 | static ssize_t |
| 544 | ds1305_nvram_read(struct kobject *kobj, struct bin_attribute *attr, | 545 | ds1305_nvram_read(struct file *filp, struct kobject *kobj, |
| 546 | struct bin_attribute *attr, | ||
| 545 | char *buf, loff_t off, size_t count) | 547 | char *buf, loff_t off, size_t count) |
| 546 | { | 548 | { |
| 547 | struct spi_device *spi; | 549 | struct spi_device *spi; |
| @@ -571,7 +573,8 @@ ds1305_nvram_read(struct kobject *kobj, struct bin_attribute *attr, | |||
| 571 | } | 573 | } |
| 572 | 574 | ||
| 573 | static ssize_t | 575 | static ssize_t |
| 574 | ds1305_nvram_write(struct kobject *kobj, struct bin_attribute *attr, | 576 | ds1305_nvram_write(struct file *filp, struct kobject *kobj, |
| 577 | struct bin_attribute *attr, | ||
| 575 | char *buf, loff_t off, size_t count) | 578 | char *buf, loff_t off, size_t count) |
| 576 | { | 579 | { |
| 577 | struct spi_device *spi; | 580 | struct spi_device *spi; |
