Skip to content

Commit 9e71728

Browse files
xdarklightjbrun3t
authored andcommitted
clk: meson: clk-pll: make "ret" a signed integer
The error codes returned by meson_clk_get_pll_settings() are all negative. Make "ret" a signed integer in meson_clk_pll_set_rate() to make it match with the clk_ops.set_rate API as well as the data type returned by meson_clk_get_pll_settings(). Fixes: 8eed1db ("clk: meson: pll: update driver for the g12a") Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20201226121556.975418-3-martin.blumenstingl@googlemail.com
1 parent 2f290b7 commit 9e71728

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/clk/meson/clk-pll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
365365
{
366366
struct clk_regmap *clk = to_clk_regmap(hw);
367367
struct meson_clk_pll_data *pll = meson_clk_pll_data(clk);
368-
unsigned int enabled, m, n, frac = 0, ret;
368+
unsigned int enabled, m, n, frac = 0;
369369
unsigned long old_rate;
370+
int ret;
370371

371372
if (parent_rate == 0 || rate == 0)
372373
return -EINVAL;

0 commit comments

Comments
 (0)