Re: [PATCH 1/1] rtc: pcf85063: fallback to parent of_node

2021-04-16 Thread Alexandre Belloni
On Wed, 10 Mar 2021 16:10:26 -0500, Francois Gervais wrote: > The rtc device node is always or at the very least can possibly be NULL. > > Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this > will lead to a NULL pointer dereference. > > To fix this we fallback to using the pare

[PATCH 1/1] rtc: pcf85063: fallback to parent of_node

2021-03-10 Thread Francois Gervais
The rtc device node is always or at the very least can possibly be NULL. Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this will lead to a NULL pointer dereference. To fix this we fallback to using the parent node which is the i2c client node as set by devm_rtc_allocate_device(