Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296317
b: refs/heads/master
c: e556fdb
h: refs/heads/master
i:
  296315: dfa8b52
v: v3
  • Loading branch information
Russell King committed Feb 9, 2012
1 parent a58f443 commit f7af92c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: d32386086b4a250bd71125f8d760cfffada0e422
refs/heads/master: e556fdbde38f68d87f689473b112cc65ddacd6a4
9 changes: 6 additions & 3 deletions trunk/drivers/net/irda/sa1100_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <net/irda/wrapper.h>
#include <net/irda/irda_device.h>

#include <asm/irq.h>
#include <mach/dma.h>
#include <mach/hardware.h>
#include <asm/mach/irda.h>
Expand Down Expand Up @@ -900,11 +899,15 @@ static int sa1100_irda_probe(struct platform_device *pdev)
struct net_device *dev;
struct sa1100_irda *si;
unsigned int baudrate_mask;
int err;
int err, irq;

if (!pdev->dev.platform_data)
return -EINVAL;

irq = platform_get_irq(pdev, 0);
if (irq <= 0)
return irq < 0 ? irq : -ENXIO;

err = request_mem_region(__PREG(Ser2UTCR0), 0x24, "IrDA") ? 0 : -EBUSY;
if (err)
goto err_mem_1;
Expand Down Expand Up @@ -936,7 +939,7 @@ static int sa1100_irda_probe(struct platform_device *pdev)
goto err_mem_5;

dev->netdev_ops = &sa1100_irda_netdev_ops;
dev->irq = IRQ_Ser2ICP;
dev->irq = irq;

irda_init_max_qos_capabilies(&si->qos);

Expand Down

0 comments on commit f7af92c

Please sign in to comment.