git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
include
/
asm-m68k
/
blinken.h
diff --git
a/include/asm-m68k/blinken.h
b/include/asm-m68k/blinken.h
index
1a749cf
..
a6b60de
100644
(file)
--- a/
include/asm-m68k/blinken.h
+++ b/
include/asm-m68k/blinken.h
@@
-13,20
+13,15
@@
#define _M68K_BLINKEN_H
#include <asm/setup.h>
#define _M68K_BLINKEN_H
#include <asm/setup.h>
-#include <asm/io.h>
#define HP300_LEDS 0xf001ffff
#define HP300_LEDS 0xf001ffff
-extern unsigned char ledstate;
-
-static __inline__ void blinken_leds(int on, int off)
+static __inline__ void blinken_leds(int x)
{
{
- if (MACH_IS_HP300)
- {
- ledstate |= on;
- ledstate &= ~off;
- out_8(HP300_LEDS, ~ledstate);
- }
+ if (MACH_IS_HP300)
+ {
+ *((volatile unsigned char *)HP300_LEDS) = (x);
+ }
}
#endif
}
#endif