aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2014-06-06 17:36:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:08 -0400
commit68164a73b1055191975419f5da7180294902f461 (patch)
tree5c080ffacc06ca6fffaa1f0f9b8b574c9ea1ece6 /drivers/rtc
parent778575ff30294adea9fc1d935dc1364e25f8f138 (diff)
drivers/rtc/rtc-hym8563.c: add optional clock-output-names property
This enables the setting of a custom clock name for the clock provided by the hym8563 rtc. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-hym8563.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
index e3290abbb03e..b936bb4096b5 100644
--- a/drivers/rtc/rtc-hym8563.c
+++ b/drivers/rtc/rtc-hym8563.c
@@ -418,6 +418,9 @@ static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
418 init.num_parents = 0; 418 init.num_parents = 0;
419 hym8563->clkout_hw.init = &init; 419 hym8563->clkout_hw.init = &init;
420 420
421 /* optional override of the clockname */
422 of_property_read_string(node, "clock-output-names", &init.name);
423
421 /* register the clock */ 424 /* register the clock */
422 clk = clk_register(&client->dev, &hym8563->clkout_hw); 425 clk = clk_register(&client->dev, &hym8563->clkout_hw);
423 426