Browse Source

m32r: export __ndelay

ERROR: "__ndelay" [drivers/spi/spi_bitbang.ko] undefined!

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Adrian Bunk 16 years ago
parent
commit
4b65fd4180
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/m32r/lib/delay.c

+ 2 - 0
arch/m32r/lib/delay.c

@@ -6,6 +6,7 @@
  */
  */
 
 
 #include <linux/param.h>
 #include <linux/param.h>
+#include <linux/module.h>
 #ifdef CONFIG_SMP
 #ifdef CONFIG_SMP
 #include <linux/sched.h>
 #include <linux/sched.h>
 #include <asm/current.h>
 #include <asm/current.h>
@@ -121,3 +122,4 @@ void __ndelay(unsigned long nsecs)
 {
 {
 	__const_udelay(nsecs * 0x00005);  /* 2**32 / 1000000000 (rounded up) */
 	__const_udelay(nsecs * 0x00005);  /* 2**32 / 1000000000 (rounded up) */
 }
 }
+EXPORT_SYMBOL(__ndelay);