[SPARC]: Initialize iounit spinlock in iounit_init().

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Raymond Burns 2006-07-17 21:40:27 -07:00 committed by David S. Miller
parent 9d7ab1f4d5
commit 2f72ba4358
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ iounit_init(int sbi_node, int io_node, struct sbus_bus *sbus)
sbus->iommu = (struct iommu_struct *)iounit;
iounit->page_table = xpt;
spin_lock_init(&iounit->lock);
for (xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t);
xpt < xptend;)