]> git.ipfire.org Git - thirdparty/linux.git/commit
rtc: pcf8563: use correct of_node for output clock
authorJohn Keeping <jkeeping@inmusicbrands.com>
Thu, 8 Jan 2026 18:47:48 +0000 (18:47 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 19 Jan 2026 23:13:28 +0000 (00:13 +0100)
commita380a02ea3ddc69c1c1ccca3882748dee33ec3d3
treee8565d6948e196f1420d78a640aeb94f4d11dd47
parentd5aca9a17f6de884febc56018f92d743b8ea1298
rtc: pcf8563: use correct of_node for output clock

When switching to regmap, the i2c_client pointer was removed from struct
pcf8563 so this function switched to using the RTC device instead.  But
the RTC device is a child of the original I2C device and does not have
an associated of_node.

Reference the correct device's of_node to ensure that the output clock
can be found when referenced by other devices and so that the override
clock name is read correctly.

Cc: stable@vger.kernel.org
Fixes: 00f1bb9b8486b ("rtc: pcf8563: Switch to regmap")
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Link: https://patch.msgid.link/20260108184749.3413348-1-jkeeping@inmusicbrands.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf8563.c