Commit 6f9119dd authored by Adam Belay's avatar Adam Belay

[PNP] Locking Fixes

The semaphore in pnp_init_resource_table is not needed and, in some
cases, can cause resource management lockups.  This patch removes the
improperly placed semaphore.
parent 468a920c
...@@ -193,7 +193,6 @@ static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx) ...@@ -193,7 +193,6 @@ static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx)
void pnp_init_resource_table(struct pnp_resource_table *table) void pnp_init_resource_table(struct pnp_resource_table *table)
{ {
int idx; int idx;
down(&pnp_res_mutex);
for (idx = 0; idx < PNP_MAX_IRQ; idx++) { for (idx = 0; idx < PNP_MAX_IRQ; idx++) {
table->irq_resource[idx].name = NULL; table->irq_resource[idx].name = NULL;
table->irq_resource[idx].start = -1; table->irq_resource[idx].start = -1;
...@@ -218,7 +217,6 @@ void pnp_init_resource_table(struct pnp_resource_table *table) ...@@ -218,7 +217,6 @@ void pnp_init_resource_table(struct pnp_resource_table *table)
table->mem_resource[idx].end = 0; table->mem_resource[idx].end = 0;
table->mem_resource[idx].flags = IORESOURCE_AUTO; table->mem_resource[idx].flags = IORESOURCE_AUTO;
} }
up(&pnp_res_mutex);
} }
/** /**
......
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