diff options
author | Zhang Rui <rui.zhang@intel.com> | 2014-05-15 12:41:34 +0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-05-15 12:41:34 +0400 |
commit | 9550b8d1dcfeceb4f6def1f0c56db4daee6bb4d7 (patch) | |
tree | 8adf1b83b8e0b7efd6c080efbbb4c04f66957b17 /drivers/thermal/ti-soc-thermal/ti-bandgap.c | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) | |
parent | 923488a53e7890566f298c2f67416af84ba2a21c (diff) | |
download | linux-9550b8d1dcfeceb4f6def1f0c56db4daee6bb4d7.tar.xz |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal into thermal-soc-fixes
Diffstat (limited to 'drivers/thermal/ti-soc-thermal/ti-bandgap.c')
-rw-r--r-- | drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 3ab12ee359b7..a1271b55103a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -1248,7 +1248,7 @@ int ti_bandgap_probe(struct platform_device *pdev) clk_rate = clk_round_rate(bgp->div_clk, bgp->conf->sensors[0].ts_data->max_freq); if (clk_rate < bgp->conf->sensors[0].ts_data->min_freq || - clk_rate == 0xffffffff) { + clk_rate <= 0) { ret = -ENODEV; dev_err(&pdev->dev, "wrong clock rate (%d)\n", clk_rate); goto put_clks; |