Skip to contentSkip to conversation

staging: media: bcm2048: radio-bcm2048.c - removed IRQF_DISABLED macro

PATCH In review Anil Belur 2 participants 5 messages Jul 9, 2014

Subsystems (2)
lore
Share & tools
lore

Anil Belur

author
#0 lore raw

PATCH 1/2 staging: media: bcm2048: radio-bcm2048.c - removed IRQF_DISABLED macro

From: Anil Belur <[email protected]>

- this patch removes IRQF_DISABLED macro, as this is deprecated/noop.

---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
index bbf236e..8760eca 100644
@@ -2618,7 +2618,7 @@ static int bcm2048_i2c_driver_probe(struct i2c_client *client,
 
 	if (client->irq) {
 		err = request_irq(client->irq,
-			bcm2048_handler, IRQF_TRIGGER_FALLING | IRQF_DISABLED,
+			bcm2048_handler, IRQF_TRIGGER_FALLING,
 			client->name, bdev);
 		if (err < 0) {
 			dev_err(&client->dev, "Could not request IRQ\n");
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 staging: nokia_h4p: nokia_core.c - removed IRQF_DISABLED macro

From: Anil Belur <[email protected]>

- this patch removes the IRQF_DISABLED macro, as this is deprecated/noop.

---
 drivers/staging/nokia_h4p/nokia_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/nokia_h4p/nokia_core.c +1 -1
index 5e19cd6..840cc66 100644
@@ -1141,7 +1141,7 @@ static int hci_h4p_probe(struct platform_device *pdev)
 
 	err = devm_request_irq(&pdev->dev, gpio_to_irq(info->host_wakeup_gpio),
 			  hci_h4p_wakeup_interrupt,  IRQF_TRIGGER_FALLING |
-			  IRQF_TRIGGER_RISING | IRQF_DISABLED,
+			  IRQF_TRIGGER_RISING,
 			  "hci_h4p_wkup", info);
 	if (err < 0) {
 		dev_err(info->dev, "hci_h4p: unable to get wakeup IRQ %d\n",
Signature · 1 line
1.9.1
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] staging: nokia_h4p: nokia_core.c - removed IRQF_DISABLED macro

Quoted 6 lines · Anil Belur

From: Anil Belur <[email protected]>

- this patch removes the IRQF_DISABLED macro, as this is deprecated/noop.

I wonder if it would maek sense to do

./include/linux/interrupt.h:#define IRQF_DISABLED 0

to make it extra clear that it is nop now?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw

Re: [PATCH 2/2] staging: nokia_h4p: nokia_core.c - removed IRQF_DISABLED macro

Quoted 3 lines · Pavel Machek

I wonder if it would maek sense to do ./include/linux/interrupt.h:#define IRQF_DISABLED 0 to make it extra clear that it is nop now? Pavel

yes - it makes sense. there are still a few references to the macro in the code.

Cheers,
Anil