Commit 0090fbee authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] parport_pc not releasing all ioports

From: John Mock <kd6pag@qsl.net>

If 'parport_pc' is compile as a module, it fails to properly return certain
ioport resources after being removed.
parent 20fe1d1c
...@@ -2358,7 +2358,11 @@ struct parport *parport_pc_probe_port (unsigned long int base, ...@@ -2358,7 +2358,11 @@ struct parport *parport_pc_probe_port (unsigned long int base,
release_region(base_hi, 3); release_region(base_hi, 3);
ECR_res = NULL; ECR_res = NULL;
} }
/* Likewise for EEP ports */
if (EPP_res && (p->modes & PARPORT_MODE_EPP) == 0) {
release_region(base+3, 5);
EPP_res = NULL;
}
if (p->irq != PARPORT_IRQ_NONE) { if (p->irq != PARPORT_IRQ_NONE) {
if (request_irq (p->irq, parport_pc_interrupt, if (request_irq (p->irq, parport_pc_interrupt,
0, p->name, p)) { 0, p->name, p)) {
......
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