Skip to contentSkip to conversation

Fix compilation issue caused by a missing function

PATCH New Tsi-Chung Liew 2 participants 2 messages Aug 1, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation issue caused by a missing function

From: TsiChung Liew <[email protected]>

Implement usec2ticks() which is used by fsl_i2c.c in lib_m68k/time.c

---
 lib_m68k/time.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
lib_m68k/time.c +5 -0
index 28d371d..6eba784 100644
@@ -199,6 +199,11 @@ unsigned long long get_ticks(void)
 	return get_timer(0);
 }
 
+unsigned long usec2ticks(unsigned long usec)
+{
+	return get_timer(usec);
+}
+
 /*
  * This function is derived from PowerPC code (timebase clock frequency).
  * On M68K it returns the number of timer ticks per second.
Signature · 1 line
1.5.6.4
#1 lore raw

PATCH 1/1 Fix compilation issue caused by a missing function

Quoted 9 lines · In message <[email protected]> you…

From: TsiChung Liew <[email protected]>

Implement usec2ticks() which is used by fsl_i2c.c in lib_m68k/time.c

---
 lib_m68k/time.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
War is never imperative.
	-- McCoy, "Balance of Terror", stardate 1709.2