]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: clk: rk3368: mark 'priv' __maybe_unused in rk3368_clk_set_rate()
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 5 Jul 2017 10:11:58 +0000 (12:11 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:32 +0000 (17:12 +0200)
With the clock support in rk3368_clk_set_rate() conditionalized on
various feature definitions, 'priv' can remain unused (e.g. in the
SPL build when only MMC is enabled).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/rockchip/clk_rk3368.c

index 2b6c8dabf8f280006c755fcb01dc9883039944b8..d3f6c29ef9c468f5b3454a2788ca6b306e46d3aa 100644 (file)
@@ -353,7 +353,7 @@ static ulong rk3368_gmac_set_clk(struct rk3368_cru *cru,
 
 static ulong rk3368_clk_set_rate(struct clk *clk, ulong rate)
 {
-       struct rk3368_clk_priv *priv = dev_get_priv(clk->dev);
+       __maybe_unused struct rk3368_clk_priv *priv = dev_get_priv(clk->dev);
        ulong ret = 0;
 
        debug("%s id:%ld rate:%ld\n", __func__, clk->id, rate);