History

[PATCH] pnp: suppress request_irq() warning

Suppress the "setup_irq: irq handler mismatch" coming out of pnp_check_irq(): failures are expected here.

Andrew Morton committed 20 years ago

Commit 0cadaf41 parent 9c7a4161 file · +2 −1Browse files

Unified · Split

drivers/pnp/resource.c+2−1
@@ -395,7 +395,8 @@ int pnp_check_irq(struct pnp_dev * dev, int idx) · 394 unmodified lines
395 /* check if the resource is already in use, skip if the395 /* check if the resource is already in use, skip if the
396 * device is active because it itself may be in use */396 * device is active because it itself may be in use */
397 if(!dev->active) {397 if(!dev->active) {
398 if (request_irq(*irq, pnp_test_handler, SA_INTERRUPT, "pnp", NULL))398 if (request_irq(*irq, pnp_test_handler,
399 SA_INTERRUPT|SA_PROBEIRQ, "pnp", NULL))
399 return 0;400 return 0;
400 free_irq(*irq, NULL);401 free_irq(*irq, NULL);
401 }402 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t