diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-04-24 13:09:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-26 12:20:35 -0400 |
commit | 18c65049b58c3c07251ed65d497cfc55d15fc6ad (patch) | |
tree | 4bb6a3bfda030feee87bf5eda17261ec257aca6a /drivers/net/ieee802154 | |
parent | 1cc9fc53b3e6f323c4194157fcc606e30f2a0b6e (diff) |
at86rf230: remove function for setting irq polarity
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>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 1331152561f9..4517b149ed07 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -961,11 +961,6 @@ static irqreturn_t at86rf230_isr_level(int irq, void *data) | |||
961 | return at86rf230_isr(irq, data); | 961 | return at86rf230_isr(irq, data); |
962 | } | 962 | } |
963 | 963 | ||
964 | static int at86rf230_irq_polarity(struct at86rf230_local *lp, int pol) | ||
965 | { | ||
966 | return at86rf230_write_subreg(lp, SR_IRQ_POLARITY, pol); | ||
967 | } | ||
968 | |||
969 | static int at86rf230_hw_init(struct at86rf230_local *lp) | 964 | static int at86rf230_hw_init(struct at86rf230_local *lp) |
970 | { | 965 | { |
971 | int rc, irq_pol, irq_type; | 966 | int rc, irq_pol, irq_type; |
@@ -983,7 +978,7 @@ static int at86rf230_hw_init(struct at86rf230_local *lp) | |||
983 | else | 978 | else |
984 | irq_pol = IRQ_ACTIVE_HIGH; | 979 | irq_pol = IRQ_ACTIVE_HIGH; |
985 | 980 | ||
986 | rc = at86rf230_irq_polarity(lp, irq_pol); | 981 | rc = at86rf230_write_subreg(lp, SR_IRQ_POLARITY, irq_pol); |
987 | if (rc) | 982 | if (rc) |
988 | return rc; | 983 | return rc; |
989 | 984 | ||