lantiq: fix use of IRQF_DISABLED in lantiq kmods

The IRQF_DISABLED flag was removed in kernel 4.1 with commit
"genirq: Remove the deprecated 'IRQF_DISABLED' request_irq() flag entirely" [1].

Therefore the compilation of ltq-hcd and ltq-vmmc kmods fails.

[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d8bf368d0631d4bc2612d8bf2e4e8e74e620d0cc

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47180
This commit is contained in:
John Crispin
2015-10-11 16:24:43 +00:00
parent c9ef7a49c7
commit f457ae99f2
6 changed files with 66 additions and 50 deletions

View File

@@ -668,7 +668,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ priv->irq_lb = irqres[0].start;
+
+ ret = devm_request_irq(&pdev->dev, irqres[0].start, ltq_i2c_isr_burst,
+ IRQF_DISABLED, "i2c lb", priv);
+ 0x0, "i2c lb", priv);
+ if (ret) {
+ dev_err(&pdev->dev, "can't get last burst IRQ %d\n",
+ irqres[0].start);
@@ -676,7 +676,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ }
+
+ ret = devm_request_irq(&pdev->dev, irqres[1].start, ltq_i2c_isr_burst,
+ IRQF_DISABLED, "i2c b", priv);
+ 0x0, "i2c b", priv);
+ if (ret) {
+ dev_err(&pdev->dev, "can't get burst IRQ %d\n",
+ irqres[1].start);
@@ -684,7 +684,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ }
+
+ ret = devm_request_irq(&pdev->dev, irqres[2].start, ltq_i2c_isr,
+ IRQF_DISABLED, "i2c err", priv);
+ 0x0, "i2c err", priv);
+ if (ret) {
+ dev_err(&pdev->dev, "can't get error IRQ %d\n",
+ irqres[2].start);
@@ -692,7 +692,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ }
+
+ ret = devm_request_irq(&pdev->dev, irqres[3].start, ltq_i2c_isr,
+ IRQF_DISABLED, "i2c p", priv);
+ 0x0, "i2c p", priv);
+ if (ret) {
+ dev_err(&pdev->dev, "can't get protocol IRQ %d\n",
+ irqres[3].start);