Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183520
b: refs/heads/master
c: d864584
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jan 15, 2010
1 parent ee54389 commit b35fdc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: c5bab5e94d148aee2c852450374143c89aa56511
refs/heads/master: d86458471aadffe93b741024b5a879ea5dc8df35
8 changes: 4 additions & 4 deletions trunk/drivers/net/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ static int ethoc_probe(struct platform_device *pdev)
}

mmio = devm_request_mem_region(&pdev->dev, res->start,
res->end - res->start + 1, res->name);
resource_size(res), res->name);
if (!mmio) {
dev_err(&pdev->dev, "cannot request I/O memory space\n");
ret = -ENXIO;
Expand All @@ -917,7 +917,7 @@ static int ethoc_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
if (res) {
mem = devm_request_mem_region(&pdev->dev, res->start,
res->end - res->start + 1, res->name);
resource_size(res), res->name);
if (!mem) {
dev_err(&pdev->dev, "cannot request memory space\n");
ret = -ENXIO;
Expand Down Expand Up @@ -945,7 +945,7 @@ static int ethoc_probe(struct platform_device *pdev)
priv->dma_alloc = 0;

priv->iobase = devm_ioremap_nocache(&pdev->dev, netdev->base_addr,
mmio->end - mmio->start + 1);
resource_size(mmio));
if (!priv->iobase) {
dev_err(&pdev->dev, "cannot remap I/O memory space\n");
ret = -ENXIO;
Expand All @@ -954,7 +954,7 @@ static int ethoc_probe(struct platform_device *pdev)

if (netdev->mem_end) {
priv->membase = devm_ioremap_nocache(&pdev->dev,
netdev->mem_start, mem->end - mem->start + 1);
netdev->mem_start, resource_size(mem));
if (!priv->membase) {
dev_err(&pdev->dev, "cannot remap memory space\n");
ret = -ENXIO;
Expand Down

0 comments on commit b35fdc4

Please sign in to comment.