Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: zynqmp: Fix optional clock name property

Clock description in DT binding introduced by commit f69060c14431
("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: 07dcc6f9c762 ("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>

authored by

Michal Simek and committed by
Alexandre Belloni
2a388ff2 09471d8f

+2 -2
+2 -2
drivers/rtc/rtc-zynqmp.c
··· 318 318 return ret; 319 319 } 320 320 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"); 323 323 if (IS_ERR(xrtcdev->rtc_clk)) { 324 324 if (PTR_ERR(xrtcdev->rtc_clk) != -EPROBE_DEFER) 325 325 dev_warn(&pdev->dev, "Device clock not found.\n");