Skip to content

Commit 2a388ff

Browse files
michalsimekalexandrebelloni
authored andcommitted
rtc: zynqmp: Fix optional clock name property
Clock description in DT binding introduced by commit f69060c ("dt-bindings: rtc: zynqmp: Add clock information") is talking about "rtc" clock name but driver is checking "rtc_clk" name instead. Because clock is optional property likely in was never handled properly by the driver. Fixes: 07dcc6f ("rtc: zynqmp: Add calibration set and get support") Signed-off-by: Michal Simek <michal.simek@amd.com> Cc: stable@kernel.org Reviewed-by: Peter Korsgaard <peter@korsgaard.com> Link: https://lore.kernel.org/r/cd5f0c9d01ec1f5a240e37a7e0d85b8dacb3a869.1732723280.git.michal.simek@amd.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 09471d8 commit 2a388ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/rtc/rtc-zynqmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
318318
return ret;
319319
}
320320

321-
/* Getting the rtc_clk info */
322-
xrtcdev->rtc_clk = devm_clk_get_optional(&pdev->dev, "rtc_clk");
321+
/* Getting the rtc info */
322+
xrtcdev->rtc_clk = devm_clk_get_optional(&pdev->dev, "rtc");
323323
if (IS_ERR(xrtcdev->rtc_clk)) {
324324
if (PTR_ERR(xrtcdev->rtc_clk) != -EPROBE_DEFER)
325325
dev_warn(&pdev->dev, "Device clock not found.\n");

0 commit comments

Comments
 (0)