Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193976
b: refs/heads/master
c: 33d8212
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and David S. Miller committed Apr 7, 2010
1 parent 16acac4 commit a53b513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: ba5d47cf4313e86afe046d402b8cfe7b2bca911d
refs/heads/master: 33d8212c4db350652d3991d60405826373fbfd60
8 changes: 3 additions & 5 deletions trunk/drivers/net/irda/sh_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,6 @@ static int __devinit sh_sir_probe(struct platform_device *pdev)
struct sh_sir_self *self;
struct resource *res;
char clk_name[8];
void __iomem *base;
unsigned int irq;
int err = -ENOMEM;

Expand All @@ -723,14 +722,14 @@ static int __devinit sh_sir_probe(struct platform_device *pdev)
if (!ndev)
goto exit;

base = ioremap_nocache(res->start, resource_size(res));
if (!base) {
self = netdev_priv(ndev);
self->membase = ioremap_nocache(res->start, resource_size(res));
if (!self->membase) {
err = -ENXIO;
dev_err(&pdev->dev, "Unable to ioremap.\n");
goto err_mem_1;
}

self = netdev_priv(ndev);
err = sh_sir_init_iobuf(self, IRDA_SKB_MAX_MTU, IRDA_SIR_MAX_FRAME);
if (err)
goto err_mem_2;
Expand All @@ -747,7 +746,6 @@ static int __devinit sh_sir_probe(struct platform_device *pdev)
ndev->netdev_ops = &sh_sir_ndo;
ndev->irq = irq;

self->membase = base;
self->ndev = ndev;
self->qos.baud_rate.bits &= IR_9600; /* FIXME */
self->qos.min_turn_time.bits = 1; /* 10 ms or more */
Expand Down

0 comments on commit a53b513

Please sign in to comment.