aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/dm9000.c4
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)
224 224
225static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count) 225static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count)
226{ 226{
227 readsb(reg, data, count+1); 227 readsb(reg, data, count);
228} 228}
229 229
230 230
@@ -364,7 +364,7 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db)
364 } 364 }
365 365
366 if (db->addr_res != NULL) { 366 if (db->addr_res != NULL) {
367 release_resource(db->data_req); 367 release_resource(db->addr_res);
368 kfree(db->addr_req); 368 kfree(db->addr_req);
369 } 369 }
370} 370}