提交 c98dbe59 编写于 作者: A Al Viro 提交者: Linus Torvalds

fix missing arguments in drivers/rtc/rtc-stk17ta8.c

struct bin_attribute * is needed in bin_attribute ->read()/->write()
now.  Incidentally, could people please run the fscking compiler
before and after applying their patch and compare the build logs?
That (and many, many other) would be caught immediately.
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 be03e56b
...@@ -258,7 +258,8 @@ static const struct rtc_class_ops stk17ta8_rtc_ops = { ...@@ -258,7 +258,8 @@ static const struct rtc_class_ops stk17ta8_rtc_ops = {
.ioctl = stk17ta8_rtc_ioctl, .ioctl = stk17ta8_rtc_ioctl,
}; };
static ssize_t stk17ta8_nvram_read(struct kobject *kobj, char *buf, static ssize_t stk17ta8_nvram_read(struct kobject *kobj,
struct bin_attribute *attr, char *buf,
loff_t pos, size_t size) loff_t pos, size_t size)
{ {
struct platform_device *pdev = struct platform_device *pdev =
...@@ -272,7 +273,8 @@ static ssize_t stk17ta8_nvram_read(struct kobject *kobj, char *buf, ...@@ -272,7 +273,8 @@ static ssize_t stk17ta8_nvram_read(struct kobject *kobj, char *buf,
return count; return count;
} }
static ssize_t stk17ta8_nvram_write(struct kobject *kobj, char *buf, static ssize_t stk17ta8_nvram_write(struct kobject *kobj,
struct bin_attribute *attr, char *buf,
loff_t pos, size_t size) loff_t pos, size_t size)
{ {
struct platform_device *pdev = struct platform_device *pdev =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册