diff options
Diffstat (limited to 'drivers/rtc/rtc-dev.c')
-rw-r--r-- | drivers/rtc/rtc-dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index 799c34bcb26f..a6d9434addf6 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c | |||
@@ -477,6 +477,7 @@ void rtc_dev_prepare(struct rtc_device *rtc) | |||
477 | 477 | ||
478 | cdev_init(&rtc->char_dev, &rtc_dev_fops); | 478 | cdev_init(&rtc->char_dev, &rtc_dev_fops); |
479 | rtc->char_dev.owner = rtc->owner; | 479 | rtc->char_dev.owner = rtc->owner; |
480 | rtc->char_dev.kobj.parent = &rtc->dev.kobj; | ||
480 | } | 481 | } |
481 | 482 | ||
482 | void rtc_dev_add_device(struct rtc_device *rtc) | 483 | void rtc_dev_add_device(struct rtc_device *rtc) |