Commit 72ecb383 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] ES1370 OSS fix

from 2.4
only register gameport if the port is active
parent b4399905
...@@ -2669,7 +2669,8 @@ static int __devinit es1370_probe(struct pci_dev *pcidev, const struct pci_devic ...@@ -2669,7 +2669,8 @@ static int __devinit es1370_probe(struct pci_dev *pcidev, const struct pci_devic
} }
set_fs(fs); set_fs(fs);
/* register gameport */ /* register gameport */
gameport_register_port(&s->gameport); if (s->gameport.io)
gameport_register_port(&s->gameport);
/* store it in the driver field */ /* store it in the driver field */
pci_set_drvdata(pcidev, s); pci_set_drvdata(pcidev, s);
......
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