mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 14:34:28 +08:00
Input: rotary_encoder - use proper irqflags
IORESOURCE_IRQ_* is wrong for irq_request, use the correct IRQF_* instead. Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
28a1bc1c0a
commit
e0d5f4c31d
@ -176,7 +176,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
|
||||
|
||||
/* request the IRQs */
|
||||
err = request_irq(encoder->irq_a, &rotary_encoder_irq,
|
||||
IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||
DRV_NAME, encoder);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "unable to request IRQ %d\n",
|
||||
@ -185,7 +185,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
err = request_irq(encoder->irq_b, &rotary_encoder_irq,
|
||||
IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||
DRV_NAME, encoder);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "unable to request IRQ %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user