]> git.dujemihanovic.xyz Git - u-boot.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)
commit224f745247045262f9c4ca9e379be1002204e4ea
tree582aa0f18c99cbbe9e45d2d1c4252b3e9ab12889
parentd17b0bedbfcd24dea36eb66852e6f8b2d334f729
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