]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] DM9000 network driver bugfix
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 20 Jun 2005 22:32:51 +0000 (15:32 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 26 Jun 2005 22:37:26 +0000 (18:37 -0400)
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>
drivers/net/dm9000.c

index f4ba0ffb8637bb43f6e846703029ed79d524df0f..5fddc0ff887822fde5cbf904e3db8e46b4becca1 100644 (file)
@@ -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);
        }
 }