linux-stable/drivers/clk
Stephen Boyd 3d6f1c7212 clk: axi-clkgen: Remove sometimes impossible check
The size of unsigned long on 64-bit architectures is equal to the
size of u64, so this check is impossible there. This throws off
static checkers:

drivers/clk/clk-axi-clkgen.c:331 axi_clkgen_recalc_rate() warn:
impossible condition '(tmp > (~0)) => (0-u64max > u64max)'

Let's change this code to use min_t() instead so that we
get the same effect on architectures where sizeof(unsigned long)
doesn't equal sizeof(u64).

Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2016-01-29 17:11:02 -08:00
..
at91
bcm clk: iproc: Remove __init from header 2016-01-29 16:31:40 -08:00
berlin
h8300
hisilicon
imx clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
ingenic
keystone
mediatek clk: mediatek: Fix memory leak on clock init fail 2016-01-29 13:02:51 -08:00
meson
mmp
mvebu clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
mxs clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
nxp clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
pistachio
pxa
qcom clk:gcc-msm8916: add missing mss_q6_bimc_axi clock 2016-01-29 16:35:22 -08:00
rockchip clk-divider: make sure read-only dividers do not write to their register 2016-01-29 12:44:37 -08:00
samsung clk: Move vendor's Kconfig into CCF menu section 2016-01-29 16:30:06 -08:00
shmobile Merge branch 'clk-renesas' into clk-next 2015-12-31 15:17:39 -08:00
sirf
socfpga
spear
st clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
sunxi Allwinner clocks changes for 4.5 2015-12-23 23:23:18 -08:00
tegra asm-generic changes for 4.5 2016-01-20 17:30:20 -08:00
ti clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
ux500
versatile ARM: SoC multiplatform code changes for v4.5 2016-01-20 18:03:56 -08:00
x86
zte
zynq
clk-asm9260.c
clk-axi-clkgen.c clk: axi-clkgen: Remove sometimes impossible check 2016-01-29 17:11:02 -08:00
clk-axm5516.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c
clk-composite.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-conf.c
clk-cs2000-cp.c
clk-devres.c
clk-divider.c clk: optimize the divider walk in clk_divider_bestdiv() 2016-01-29 16:45:32 -08:00
clk-efm32gg.c
clk-fixed-factor.c clk: add clk_unregister_fixed_factor() 2016-01-29 16:35:49 -08:00
clk-fixed-rate.c clk: add clk_unregister_fixed_rate() 2016-01-29 16:37:24 -08:00
clk-fractional-divider.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-gate.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-gpio.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-highbank.c
clk-ls1x.c
clk-max-gen.c
clk-max-gen.h
clk-max77686.c
clk-max77802.c
clk-mb86s7x.c
clk-moxart.c
clk-multiplier.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-mux.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clk-nomadik.c
clk-nspire.c
clk-palmas.c clk: palmas: fix a possible NULL dereference 2016-01-29 16:57:09 -08:00
clk-pwm.c
clk-qoriq.c
clk-rk808.c
clk-s2mps11.c clk: s2mps11: remove redundant code 2016-01-29 12:47:22 -08:00
clk-scpi.c clk: scpi: Fix checking return value of platform_device_register_simple() 2016-01-29 12:07:59 -08:00
clk-si514.c
clk-si570.c
clk-si5351.c
clk-si5351.h
clk-stm32f4.c
clk-tango4.c
clk-twl6040.c
clk-u300.c
clk-vt8500.c clk: vt8500: fix sign of possible PLL values 2016-01-29 16:43:58 -08:00
clk-wm831x.c
clk-xgene.c clk: xgene: Remove return from void function 2016-01-29 12:57:54 -08:00
clk.c Merge branch 'clk-rockchip' into clk-next 2015-12-23 13:08:56 -08:00
clk.h
clkdev.c
Kconfig clk: Move vendor's Kconfig into CCF menu section 2016-01-29 16:30:06 -08:00
Makefile clk: tango4: rename ARCH_TANGOX to ARCH_TANGO 2016-01-29 12:08:02 -08:00