Skip to content

Commit

Permalink
can: sja1000: allow shared interrupt definition
Browse files Browse the repository at this point in the history
extend the AND mask, so that IRQF_SHARED flag remains

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yegor Yefremov authored and David S. Miller committed Mar 22, 2010
1 parent e99b99b commit abde89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/sja1000/sja1000_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int sp_probe(struct platform_device *pdev)
priv = netdev_priv(dev);

dev->irq = res_irq->start;
priv->irq_flags = res_irq->flags & IRQF_TRIGGER_MASK;
priv->irq_flags = res_irq->flags & (IRQF_TRIGGER_MASK | IRQF_SHARED);
priv->reg_base = addr;
priv->read_reg = sp_read_reg;
priv->write_reg = sp_write_reg;
Expand Down

0 comments on commit abde89d

Please sign in to comment.