linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] mips/emma2rh/markeins/setup.c build fix
@ 2008-05-04 16:58 Adrian Bunk
  2008-05-04 17:15 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-05-04 16:58 UTC (permalink / raw)
  To: Roman Zippel, ralf; +Cc: linux-mips, Andrew Morton, linux-kernel

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@kernel.org>

---

 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)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] mips/emma2rh/markeins/setup.c build fix
  2008-05-04 16:58 [2.6 patch] mips/emma2rh/markeins/setup.c build fix Adrian Bunk
@ 2008-05-04 17:15 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-05-04 17:15 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Roman Zippel, linux-mips, Andrew Morton, linux-kernel

On Sun, May 04, 2008 at 07:58:54PM +0300, Adrian Bunk wrote:
> From: Adrian Bunk <bunk@kernel.org>
> Date: Sun, 4 May 2008 19:58:54 +0300
> To: Roman Zippel <zippel@linux-m68k.org>, ralf@linux-mips.org
> Cc: linux-mips@linux-mips.org, Andrew Morton <akpm@linux-foundation.org>,
> 	linux-kernel@vger.kernel.org
> Subject: [2.6 patch] mips/emma2rh/markeins/setup.c build fix
> Content-Type: text/plain; charset=utf-8

Thanks, applied.

   Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-04 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-04 16:58 [2.6 patch] mips/emma2rh/markeins/setup.c build fix Adrian Bunk
2008-05-04 17:15 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).