clk: imx: get stdout clk count from device tree
authorPeng Fan <peng.fan@nxp.com>
Wed, 4 Jan 2023 11:00:30 +0000 (19:00 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Sun, 29 Jan 2023 18:29:26 +0000 (20:29 +0200)
commit8658f0acc8b0ab67f66b028e8f6136038b7b7379
treed45689e25d5e36e6221e127d4feab65256584347
parentf4419db4086e8c31821da14140e81498516a3c75
clk: imx: get stdout clk count from device tree

Currently the clk_count is specified by API users, but this
parameter is wrongly used, for example, i.MX8M clk driver use 4,
however the uart device tree node only use 2 clock entries. So
let using of_clk_get_parent_count to get the exact clock count.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230104110032.1220721-3-peng.fan@oss.nxp.com
drivers/clk/imx/clk.c