diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2005-06-20 15:32:51 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-26 18:37:26 -0400 |
commit | 5f6b5517bfcae217d52a7607b1bebc3a257f45d1 (patch) | |
tree | 815012b8a1ea2c5528367107802447e98354bf0a /drivers/net/dm9000.c | |
parent | 1db1a8740abc90f4715a48cd970506686e6da5b1 (diff) | |
download | blackbird-op-linux-5f6b5517bfcae217d52a7607b1bebc3a257f45d1.tar.gz blackbird-op-linux-5f6b5517bfcae217d52a7607b1bebc3a257f45d1.zip |
[PATCH] DM9000 network driver bugfix
This patch fixes two bugs in the dm9000 network driver:
- Don't read one byte too much in 8bit mode.
- release correct resource
Signed-off-by: Jochen Karrer <j.karrer@lightmaze.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r-- | drivers/net/dm9000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index f4ba0ffb8637..5fddc0ff8878 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -224,7 +224,7 @@ static void dm9000_outblk_32bit(void __iomem *reg, void *data, int count) static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count) { - readsb(reg, data, count+1); + readsb(reg, data, count); } @@ -364,7 +364,7 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db) } if (db->addr_res != NULL) { - release_resource(db->data_req); + release_resource(db->addr_res); kfree(db->addr_req); } } |