]> git.baikalelectronics.ru Git - uboot.git/commit
clk: imx8: fix build warning
authorPeng Fan <peng.fan@nxp.com>
Sat, 15 Dec 2018 12:19:46 +0000 (12:19 +0000)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jan 2019 16:03:29 +0000 (17:03 +0100)
commit9070c15899bc5935cb78d950fb18313bc98f1c27
tree582aa0f18c99cbbe9e45d2d1c4252b3e9ab12889
parent4e539ae1c4d9881e72253b99dddbed90f9402836
clk: imx8: fix build warning

When build clk driver in spl, met the warning:
"
drivers/clk/imx/clk-imx8.c:21:25: warning: ‘imx8_clk_names’ defined but not used [-Wunused-variable]
 static struct imx8_clks imx8_clk_names[] = {
                         ^~~~~~~~~~~~~~
"

Fix with wrapping the array with CONFIG_CMD_CLK.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/imx/clk-imx8.c