diff options
author | David S. Miller <davem@davemloft.net> | 2009-10-13 12:55:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 12:55:20 -0700 |
commit | 421355de876b9f3fcc7e4cb6026e416fb12a5068 (patch) | |
tree | fb814456af86c75e1eb9e330994dda461fc5b4f7 /drivers/net/irda | |
parent | aace495933a981274b6491d71b915165a61defdc (diff) | |
parent | 0fe7463a35aadfaf22d1ca58325ab3851b8d757c (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index 38bf7cf2256d..c412e8026173 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c @@ -232,8 +232,11 @@ static int sa1100_irda_startup(struct sa1100_irda *si) /* * Ensure that the ports for this device are setup correctly. */ - if (si->pdata->startup) - si->pdata->startup(si->dev); + if (si->pdata->startup) { + ret = si->pdata->startup(si->dev); + if (ret) + return ret; + } /* * Configure PPC for IRDA - we want to drive TXD2 low. |