can: mcp251x: Allow pass IRQ flags through platform data.
[deliverable/linux.git] / drivers / net / can / mcp251x.c
index 7513c4523ac4833d05e7e6efe3c4e07268704175..330140ee266dfe7d19e9ba4be07dd3a384b6605e 100644 (file)
@@ -931,7 +931,8 @@ static int mcp251x_open(struct net_device *net)
        priv->tx_len = 0;
 
        ret = request_threaded_irq(spi->irq, NULL, mcp251x_can_ist,
-                         IRQF_TRIGGER_FALLING, DEVICE_NAME, priv);
+                 pdata->irq_flags ? pdata->irq_flags : IRQF_TRIGGER_FALLING,
+                 DEVICE_NAME, priv);
        if (ret) {
                dev_err(&spi->dev, "failed to acquire irq %d\n", spi->irq);
                if (pdata->transceiver_enable)
This page took 0.025987 seconds and 5 git commands to generate.