summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ab-eoz9.c
diff options
context:
space:
mode:
authorFrancois Gervais <fgervais@distech-controls.com>2021-03-10 16:10:26 -0500
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-04-16 23:50:25 +0200
commit03531606ef4cda25b629f500d1ffb6173b805c05 (patch)
tree1f05f1ecaf4335c4cebec1764df0839e2ab69dd0 /drivers/rtc/rtc-ab-eoz9.c
parent3fd00fdc4f11c656a63e6a6280c0bcb63cf109a2 (diff)
rtc: pcf85063: fallback to parent of_node
The rtc device node is always NULL. Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this will lead to a NULL pointer dereference. To fix this use the parent node which is the i2c client node as set by devm_rtc_allocate_device(). Using the i2c client node seems to be what other similar drivers do e.g. rtc-pcf8563.c. Signed-off-by: Francois Gervais <fgervais@distech-controls.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20210310211026.27299-1-fgervais@distech-controls.com
Diffstat (limited to 'drivers/rtc/rtc-ab-eoz9.c')
0 files changed, 0 insertions, 0 deletions