[2.6 patch] mips/emma2rh/markeins/setup.c build fix



This patch fixes the following build errror caused by
commit 7dffa3c673fbcf835cd7be80bb4aec8ad3f51168
(ntp: handle leap second via timer):

<-- snip -->

...
CC arch/mips/emma2rh/markeins/setup.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/mips/emma2rh/markeins/setup.c:79: error: conflicting types for 'clock'
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/clocksource.h:96: error: previous declaration of 'clock' was here
make[2]: *** [arch/mips/emma2rh/markeins/setup.o] Error 1

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---

arch/mips/emma2rh/markeins/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

139244b9f3cd31793da682da14c67e38836bec36 diff --git a/arch/mips/emma2rh/markeins/setup.c b/arch/mips/emma2rh/markeins/setup.c
index 82f9e90..487cac5 100644
--- a/arch/mips/emma2rh/markeins/setup.c
+++ b/arch/mips/emma2rh/markeins/setup.c
@@ -76,7 +76,7 @@ static void markeins_machine_power_off(void)
while (1) ;
}

-static unsigned long clock[4] = { 166500000, 187312500, 199800000, 210600000 };
+static unsigned long emma2rh_clock[4] = { 166500000, 187312500, 199800000, 210600000 };

static unsigned int __init detect_bus_frequency(unsigned long rtc_base)
{
@@ -85,7 +85,7 @@ static unsigned int __init detect_bus_frequency(unsigned long rtc_base)
/* detect from boot strap */
reg = emma2rh_in32(EMMA2RH_BHIF_STRAP_0);
reg = (reg >> 4) & 0x3;
- return clock[reg];
+ return emma2rh_clock[reg];
}

void __init plat_time_init(void)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [REGRESSION 2.6.28-rc2-git3] lots of extra timer interrupts costing 2W
    ... powertop is reporting a huge number of excess timer interrupts on my ... It's commit fb02fbc1, "NOHZ: ... # CPUFreq processor drivers ...
    (Linux-Kernel)
  • [GIT PULL] timer updates for v2.6.30
    ... NTP code cleanups and fixlets. ... The ICH10 force-enable hpet change brings regression risks on ... timer 0 and timer 1 in case of RTC emulation. ... +static void hpet_start_counter ...
    (Linux-Kernel)
  • Re: ntp client over satellite and no CMOS battery
    ... uses the Windows multimedia timers and sets them to highest resolution of 1 ... like NTP looses about 15 to 20 milliseconds, which looks to NTP as if the ... system time has been stepped a bit. ... However, you know that under Windows, NTP uses a timer callback function ...
    (comp.protocols.time.ntp)
  • Re: Is the use of the leap seconds mechanism mandatory?
    ... Basically the time used by NTP is assumed to be UTC. ... of the leap second it passes the announcement to its clients. ... levels of clients below the top level server which are polling at long ...
    (comp.protocols.time.ntp)
  • Re: EWF RAM
    ... Yes, the timer was for grins, I could do away with it. ... Since this is being done from a batch file on a remote laptop, ... > By commit you mean perform commin of EWF, ...
    (microsoft.public.windowsxp.embedded)