Commit e0d5f4c3 authored by Alexander Stein's avatar Alexander Stein Committed by Dmitry Torokhov

Input: rotary_encoder - use proper irqflags

IORESOURCE_IRQ_* is wrong for irq_request, use the correct IRQF_* instead.
Signed-off-by: default avatarAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 28a1bc1c
...@@ -176,7 +176,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) ...@@ -176,7 +176,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
/* request the IRQs */ /* request the IRQs */
err = request_irq(encoder->irq_a, &rotary_encoder_irq, err = request_irq(encoder->irq_a, &rotary_encoder_irq,
IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
DRV_NAME, encoder); DRV_NAME, encoder);
if (err) { if (err) {
dev_err(&pdev->dev, "unable to request IRQ %d\n", dev_err(&pdev->dev, "unable to request IRQ %d\n",
...@@ -185,7 +185,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) ...@@ -185,7 +185,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
} }
err = request_irq(encoder->irq_b, &rotary_encoder_irq, err = request_irq(encoder->irq_b, &rotary_encoder_irq,
IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
DRV_NAME, encoder); DRV_NAME, encoder);
if (err) { if (err) {
dev_err(&pdev->dev, "unable to request IRQ %d\n", dev_err(&pdev->dev, "unable to request IRQ %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment