Skip to content

Commit

Permalink
at86rf230: remove function for setting irq polarity
Browse files Browse the repository at this point in the history
The function is small enough, we don't need a extra function for this.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Apr 26, 2014
1 parent 1cc9fc5 commit 18c6504
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/net/ieee802154/at86rf230.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,11 +961,6 @@ static irqreturn_t at86rf230_isr_level(int irq, void *data)
return at86rf230_isr(irq, data);
}

static int at86rf230_irq_polarity(struct at86rf230_local *lp, int pol)
{
return at86rf230_write_subreg(lp, SR_IRQ_POLARITY, pol);
}

static int at86rf230_hw_init(struct at86rf230_local *lp)
{
int rc, irq_pol, irq_type;
Expand All @@ -983,7 +978,7 @@ static int at86rf230_hw_init(struct at86rf230_local *lp)
else
irq_pol = IRQ_ACTIVE_HIGH;

rc = at86rf230_irq_polarity(lp, irq_pol);
rc = at86rf230_write_subreg(lp, SR_IRQ_POLARITY, irq_pol);
if (rc)
return rc;

Expand Down

0 comments on commit 18c6504

Please sign in to comment.