From: Thomas Petazzoni Date: Wed, 5 Jun 2013 07:04:55 +0000 (+0200) Subject: arm: mvebu: avoid hardcoded virtual address in coherency code X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~71^2~33^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865e0527d2d791083a40555f2ba872da5fbddda8;p=pandora-kernel.git arm: mvebu: avoid hardcoded virtual address in coherency code Now that the coherency_get_cpu_count() function no longer requires a very early mapping of the coherency unit registers, we can avoid the hardcoded virtual address in coherency.c. However, the coherency features are still used quite early, so we need to do the of_iomap() early enough, at the ->init_timer() level, so we have the call of coherency_init() at this point. Unfortunately, at ->init_timer() time, it is not possible to register a bus notifier, so we add a separate coherency_late_init() function that gets called as as postcore_initcall(), when bus notifiers are available. Signed-off-by: Thomas Petazzoni Acked-by: Arnd Bergmann Signed-off-by: Jason Cooper --- Reading git-diff-tree failed