浏览代码

nds32/ag101/watchdog.S: add linkage support

Add linkage support to watchdog.S.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Macpaul Lin 13 年之前
父节点
当前提交
3998586bce
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arch/nds32/cpu/n1213/ag101/watchdog.S

+ 3 - 2
arch/nds32/cpu/n1213/ag101/watchdog.S

@@ -22,12 +22,12 @@
  */
  */
 
 
 #include <asm/arch-ag101/ag101.h>
 #include <asm/arch-ag101/ag101.h>
+#include <linux/linkage.h>
 
 
 .text
 .text
 
 
 #ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
 #ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
-.globl	turnoff_watchdog
-turnoff_watchdog:
+ENTRY(turnoff_watchdog)
 
 
 #define WD_CR		0xC
 #define WD_CR		0xC
 #define WD_ENABLE	0x1
 #define WD_ENABLE	0x1
@@ -45,4 +45,5 @@ turnoff_watchdog:
 
 
 	ret
 	ret
 
 
+ENDPROC(turnoff_watchdog)
 #endif
 #endif