diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-06-23 17:39:26 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-06-23 17:39:26 +0200 |
commit | 982a1dab66c3522e292dd62eef13e05e15a3c4ab (patch) | |
tree | 1f4067f6bae1e97a00f271abd792e19abc0ad88e | |
parent | 3951d7043e3002d34780618cfa2ccf378bd14edd (diff) |
glamo-fb: Remove nops in reg_{read,write}
-rw-r--r-- | drivers/video/glamo-fb.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/video/glamo-fb.c b/drivers/video/glamo-fb.c index c74ea733a8c..55008a1bf7d 100644 --- a/drivers/video/glamo-fb.c +++ b/drivers/video/glamo-fb.c @@ -91,25 +91,15 @@ static void glamo_output_disable(struct glamofb_handle *gfb) } -static int reg_read(struct glamofb_handle *glamo, +static inline int reg_read(struct glamofb_handle *glamo, u_int16_t reg) { - int i = 0; - - for (i = 0; i != 2; i++) - nop(); - return readw(glamo->base + reg); } -static void reg_write(struct glamofb_handle *glamo, +static inline void reg_write(struct glamofb_handle *glamo, uint16_t reg, uint16_t val) { - int i = 0; - - for (i = 0; i != 2; i++) - nop(); - writew(val, glamo->base + reg); } |