scummvm random work
[patches.git] / linux-rtc-sysfs-no-devinit-add.patch
1 rtc_sysfs_add_device is needed even after dev initialization, so drop __devinit.
2
3 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
4
5 diff --git a/drivers/rtc/rtc-sysfs.c b/drivers/rtc/rtc-sysfs.c
6 index 9418a59..2ddd0cf 100644
7 --- a/drivers/rtc/rtc-sysfs.c
8 +++ b/drivers/rtc/rtc-sysfs.c
9 @@ -78,7 +78,7 @@ static struct attribute_group rtc_attr_group = {
10 .attrs = rtc_attrs,
11 };
12
13 -static int __devinit rtc_sysfs_add_device(struct class_device *class_dev,
14 +static int rtc_sysfs_add_device(struct class_device *class_dev,
15 struct class_interface *class_intf)
16 {
17 int err;