Patchwork [U-Boot] ARMV7:ca9x4_ct_vxp: udelay reference fix

login
register
mail settings
Submitter Matt Waddel
Date Nov. 29, 2010, 6:09 p.m.
Message ID <4CF3EC53.2050905@canonical.com>
Download mbox | patch
Permalink /patch/73478/
State Accepted
Commit 44b0a386bc435d2b51e1b088a0e2610226000c3c
Delegated to: Wolfgang Denk
Headers show

Comments

Matt Waddel - Nov. 29, 2010, 6:09 p.m.
Fixes undefined reference to `__udelay' build failure.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
---
 board/armltd/vexpress/ca9x4_ct_vxp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Dirk Behme - Nov. 29, 2010, 6:59 p.m.
On 29.11.2010 19:09, Matt Waddel wrote:
> Fixes undefined reference to `__udelay' build failure.
>
> Signed-off-by: Matt Waddel<matt.waddel@linaro.org>

Ah, you were some minutes faster ;) So:

Acked-by: Dirk Behme <dirk.behme@googlemail.com>

> ---
>   board/armltd/vexpress/ca9x4_ct_vxp.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c
> b/board/armltd/vexpress/ca9x4_ct_vxp.c
> index c1c4ea1..ce1be1e 100644
> --- a/board/armltd/vexpress/ca9x4_ct_vxp.c
> +++ b/board/armltd/vexpress/ca9x4_ct_vxp.c
> @@ -157,7 +157,7 @@ void reset_cpu(ulong addr)
>    * Delay x useconds AND perserve advance timstamp value
>    *     assumes timer is ticking at 1 msec
>    */
> -void udelay(ulong usec)
> +void __udelay(ulong usec)
>   {
>   	ulong tmo, tmp;
>

Patch

diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c
b/board/armltd/vexpress/ca9x4_ct_vxp.c
index c1c4ea1..ce1be1e 100644
--- a/board/armltd/vexpress/ca9x4_ct_vxp.c
+++ b/board/armltd/vexpress/ca9x4_ct_vxp.c
@@ -157,7 +157,7 @@  void reset_cpu(ulong addr)
  * Delay x useconds AND perserve advance timstamp value
  *     assumes timer is ticking at 1 msec
  */
-void udelay(ulong usec)
+void __udelay(ulong usec)
 {
 	ulong tmo, tmp;