Re: [PATCH 1/3] rtc: ds1685: fix crash caused by referencing wrong device struct

2019-04-12 Thread Alexandre Belloni
On 11/04/2019 16:33:21+0200, Thomas Bogendoerfer wrote: > sysfs entries added by rtc_add_group are called with the rtc device > as argument and not the underlying device. Fixed by using the dev->parent > > Fixes: cfb74916e2ec ("rtc: ds1685: use rtc_add_group") > Signed-off-by: Thomas Bogendoerfer

[PATCH 1/3] rtc: ds1685: fix crash caused by referencing wrong device struct

2019-04-11 Thread Thomas Bogendoerfer
sysfs entries added by rtc_add_group are called with the rtc device as argument and not the underlying device. Fixed by using the dev->parent Fixes: cfb74916e2ec ("rtc: ds1685: use rtc_add_group") Signed-off-by: Thomas Bogendoerfer --- drivers/rtc/rtc-ds1685.c | 6 +++--- 1 file changed, 3