x86/x64: Exclude devices with legacy IRQ 255
Signed-off-by: James Slepicka <jslepicka@peak6.com>
This commit is contained in:
parent
54cb9bfa92
commit
ecb5435757
|
@ -655,8 +655,13 @@ static void build_one_dev_entry(const char *dirname, GList *tmp_irqs)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* no pci device has irq 0
|
* no pci device has irq 0
|
||||||
|
* irq 255 is invalid on x86/x64 architectures
|
||||||
*/
|
*/
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
if (irqnum && irqnum != 255) {
|
||||||
|
#else
|
||||||
if (irqnum) {
|
if (irqnum) {
|
||||||
|
#endif
|
||||||
new = get_irq_info(irqnum);
|
new = get_irq_info(irqnum);
|
||||||
if (new)
|
if (new)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue