]> git.baikalelectronics.ru Git - kernel.git/commit
clk: socfpga: fix iomem pointer cast on 64-bit
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sun, 14 Mar 2021 11:07:09 +0000 (12:07 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 29 Mar 2021 19:04:38 +0000 (12:04 -0700)
commit3ce4701d2655e4c44f31992c2ca8f5d9848d7d25
tree348f64279cfddb02c4afb7d24baaca78b1adbad3
parent01e84432cb7d9db7f02ef8fe7e750be107c452a6
clk: socfpga: fix iomem pointer cast on 64-bit

Pointers should be cast with uintptr_t instead of integer.  This fixes
warning when compile testing on ARM64:

  drivers/clk/socfpga/clk-gate.c: In function ‘socfpga_clk_recalc_rate’:
  drivers/clk/socfpga/clk-gate.c:102:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Fixes: ee8e115a571e ("clk: socfpga: Look for the GPIO_DB_CLK by its offset")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20210314110709.32599-1-krzysztof.kozlowski@canonical.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-gate.c