clk: xgene: Don't call __pa on ioremaped address
authorLaura Abbott <labbott@redhat.com>
Fri, 28 Oct 2016 16:59:38 +0000 (09:59 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 28 Oct 2016 18:03:47 +0000 (11:03 -0700)
commit06b113e9f28f8657715919087a3f54b77d1634ed
treef4b3a519151f8e668c9e3c12abd3c2715c909b30
parent5c4a9129b81027eca12aeaf2fa9defb45150f533
clk: xgene: Don't call __pa on ioremaped address

ioremaped addresses are not linearly mapped so the physical
address can not be figured out via __pa. More generally, there
is no guarantee that backing value of an ioremapped address
is a physical address at all. The value here is only used
for debugging so just drop the call to __pa on the ioremapped
address.

Fixes: 6ae5fd381251 ("clk: xgene: Silence sparse warnings")
Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Loc Ho <lho@apm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-xgene.c