diff options
Diffstat (limited to 'drivers/rtc/rtc-tx4939.c')
| -rw-r--r-- | drivers/rtc/rtc-tx4939.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c index 9ee81d8aa7c0..ec6313d15359 100644 --- a/drivers/rtc/rtc-tx4939.c +++ b/drivers/rtc/rtc-tx4939.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
| 13 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
| 14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
| 15 | #include <linux/gfp.h> | ||
| 15 | #include <asm/txx9/tx4939.h> | 16 | #include <asm/txx9/tx4939.h> |
| 16 | 17 | ||
| 17 | struct tx4939rtc_plat_data { | 18 | struct tx4939rtc_plat_data { |
| @@ -187,7 +188,7 @@ static const struct rtc_class_ops tx4939_rtc_ops = { | |||
| 187 | .alarm_irq_enable = tx4939_rtc_alarm_irq_enable, | 188 | .alarm_irq_enable = tx4939_rtc_alarm_irq_enable, |
| 188 | }; | 189 | }; |
| 189 | 190 | ||
| 190 | static ssize_t tx4939_rtc_nvram_read(struct kobject *kobj, | 191 | static ssize_t tx4939_rtc_nvram_read(struct file *filp, struct kobject *kobj, |
| 191 | struct bin_attribute *bin_attr, | 192 | struct bin_attribute *bin_attr, |
| 192 | char *buf, loff_t pos, size_t size) | 193 | char *buf, loff_t pos, size_t size) |
| 193 | { | 194 | { |
| @@ -206,7 +207,7 @@ static ssize_t tx4939_rtc_nvram_read(struct kobject *kobj, | |||
| 206 | return count; | 207 | return count; |
| 207 | } | 208 | } |
| 208 | 209 | ||
| 209 | static ssize_t tx4939_rtc_nvram_write(struct kobject *kobj, | 210 | static ssize_t tx4939_rtc_nvram_write(struct file *filp, struct kobject *kobj, |
| 210 | struct bin_attribute *bin_attr, | 211 | struct bin_attribute *bin_attr, |
| 211 | char *buf, loff_t pos, size_t size) | 212 | char *buf, loff_t pos, size_t size) |
| 212 | { | 213 | { |
