Skip to content

Commit

Permalink
irda/sa1100_ir: check return value of startup hook
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dmitry Artamonow authored and David S. Miller committed Oct 13, 2009
1 parent 8558467 commit 91cd175
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/net/irda/sa1100_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 91cd175

Please sign in to comment.