diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-01-08 04:01:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:12:45 -0500 |
commit | 3eaa5e7dcce0653d2bfd2ab85a623687da49f8d5 (patch) | |
tree | 92f8471f9776088acec5db6efb7fe9158446a583 /drivers/net/cs89x0.c | |
parent | 0d5affcfe23ade8c4c01154e7e381e2a9a916399 (diff) |
[PATCH] cs89x0: make {read,write}reg use {read,write}word
Make readreg/writereg use readword/writeword.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: dmitry pervushin <dpervushin@ru.mvista.com>
Cc: <dsaxena@plexity.net>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/cs89x0.c')
-rw-r--r-- | drivers/net/cs89x0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index 221f92e45ec7..756d80adc47b 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -351,17 +351,17 @@ writeword(unsigned long base_addr, int portno, int value) | |||
351 | } | 351 | } |
352 | 352 | ||
353 | static int | 353 | static int |
354 | readreg(struct net_device *dev, int portno) | 354 | readreg(struct net_device *dev, int regno) |
355 | { | 355 | { |
356 | outw(portno, dev->base_addr + ADD_PORT); | 356 | writeword(dev->base_addr, ADD_PORT, regno); |
357 | return inw(dev->base_addr + DATA_PORT); | 357 | return readword(dev->base_addr, DATA_PORT); |
358 | } | 358 | } |
359 | 359 | ||
360 | static void | 360 | static void |
361 | writereg(struct net_device *dev, int portno, int value) | 361 | writereg(struct net_device *dev, int regno, int value) |
362 | { | 362 | { |
363 | outw(portno, dev->base_addr + ADD_PORT); | 363 | writeword(dev->base_addr, ADD_PORT, regno); |
364 | outw(value, dev->base_addr + DATA_PORT); | 364 | writeword(dev->base_addr, DATA_PORT, value); |
365 | } | 365 | } |
366 | 366 | ||
367 | static int __init | 367 | static int __init |