]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3a3630a471d36dc725dfee3898bd43ba03672c6
treef4b3a519151f8e668c9e3c12abd3c2715c909b30
parente332bc1b0ebed0749c929f9ae8e2aef08a4721b2
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: 58a38c4e0c7d ("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