Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103099
b: refs/heads/master
c: 9088fa4
h: refs/heads/master
i:
  103097: bf2b5fa
  103095: e638b83
v: v3
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Jun 25, 2008
1 parent 4a58022 commit 83f9fe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d406b3c76b369a7b043470719761aa6ee1a38d1
refs/heads/master: 9088fa4fa2f0b10bf4d9a17381a5ec3485751cb7
24 changes: 4 additions & 20 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,28 +505,18 @@ dm9000_poll_work(struct work_struct *w)
static void
dm9000_release_board(struct platform_device *pdev, struct board_info *db)
{
if (db->data_res == NULL) {
if (db->addr_res != NULL)
release_mem_region((unsigned long)db->io_addr, 4);
return;
}

/* unmap our resources */

iounmap(db->io_addr);
iounmap(db->io_data);

/* release the resources */

if (db->data_req != NULL) {
release_resource(db->data_req);
kfree(db->data_req);
}
release_resource(db->data_req);
kfree(db->data_req);

if (db->addr_req != NULL) {
release_resource(db->addr_req);
kfree(db->addr_req);
}
release_resource(db->addr_req);
kfree(db->addr_req);
}

static unsigned char dm9000_type_to_char(enum dm9000_type type)
Expand Down Expand Up @@ -580,12 +570,6 @@ dm9000_probe(struct platform_device *pdev)

INIT_DELAYED_WORK(&db->phy_poll, dm9000_poll_work);


if (pdev->num_resources < 3) {
ret = -ENODEV;
goto out;
}

db->addr_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
db->data_res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
db->irq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
Expand Down

0 comments on commit 83f9fe8

Please sign in to comment.