X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sh%2Fwatchdog.h;h=d19ea62ef8c674c953c5e89cdd62c75359778f5a;hb=refs%2Fheads%2Fvserver;hp=ff055178d2c1669ea641f83d476b6b8318e2ddd7;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-sh/watchdog.h b/include/asm-sh/watchdog.h index ff055178d..d19ea62ef 100644 --- a/include/asm-sh/watchdog.h +++ b/include/asm-sh/watchdog.h @@ -10,9 +10,9 @@ */ #ifndef __ASM_SH_WATCHDOG_H #define __ASM_SH_WATCHDOG_H +#ifdef __KERNEL__ #include -#include #include #include @@ -62,7 +62,6 @@ /** * sh_wdt_read_cnt - Read from Counter - * * Reads back the WTCNT value. */ static inline __u8 sh_wdt_read_cnt(void) @@ -72,7 +71,6 @@ static inline __u8 sh_wdt_read_cnt(void) /** * sh_wdt_write_cnt - Write to Counter - * * @val: Value to write * * Writes the given value @val to the lower byte of the timer counter. @@ -95,7 +93,6 @@ static inline __u8 sh_wdt_read_csr(void) /** * sh_wdt_write_csr - Write to Control/Status Register - * * @val: Value to write * * Writes the given value @val to the lower byte of the control/status @@ -106,5 +103,5 @@ static inline void sh_wdt_write_csr(__u8 val) ctrl_outw((WTCSR_HIGH << 8) | (__u16)val, WTCSR); } +#endif /* __KERNEL__ */ #endif /* __ASM_SH_WATCHDOG_H */ -