clocksource: fixup ux500 build problems
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Oct 2011 07:30:20 +0000 (09:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Oct 2011 07:34:16 +0000 (09:34 +0200)
commitb1e3be0647fec81887e55edbda0c56c0445f7b53
treef45cf420afccc005b46bb24d4fc3e731b9d434ae
parentbb219dba0d1e46324ea462ba42f6fd8e9b7471de
clocksource: fixup ux500 build problems

Based on a patch from Arnd Bergmann this fixes up the build
problem of assigning a non-existing global when the ux500 PRCMU
timer is not linked in by passing its base address to the init
function. We also add a missing <linux/errno.h> inclusion and
staticize the dummy function.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/timer.c
drivers/clocksource/clksrc-dbx500-prcmu.c
include/linux/clksrc-dbx500-prcmu.h