diff options
author | Helge Deller <deller@gmx.de> | 2017-08-07 23:28:39 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2017-08-22 16:34:34 +0200 |
commit | 8b5bdd850dcc12b2d1c1e1a8418c0c31da56e69b (patch) | |
tree | 11f07eb7fd04ba2de0516274ddd849bd58b83401 | |
parent | da3dc73ef6dcb226a2a97ac70c53026b7d16d77e (diff) | |
download | op-kernel-dev-8b5bdd850dcc12b2d1c1e1a8418c0c31da56e69b.zip op-kernel-dev-8b5bdd850dcc12b2d1c1e1a8418c0c31da56e69b.tar.gz |
parisc: Static initialization of pcxl_res_lock spinlock
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/kernel/pci-dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c index 5f0067a..bd4c0a7 100644 --- a/arch/parisc/kernel/pci-dma.c +++ b/arch/parisc/kernel/pci-dma.c @@ -41,7 +41,7 @@ static unsigned long pcxl_used_bytes __read_mostly = 0; static unsigned long pcxl_used_pages __read_mostly = 0; extern unsigned long pcxl_dma_start; /* Start of pcxl dma mapping area */ -static spinlock_t pcxl_res_lock; +static DEFINE_SPINLOCK(pcxl_res_lock); static char *pcxl_res_map; static int pcxl_res_hint; static int pcxl_res_size; @@ -390,7 +390,6 @@ pcxl_dma_init(void) if (pcxl_dma_start == 0) return 0; - spin_lock_init(&pcxl_res_lock); pcxl_res_size = PCXL_DMA_MAP_SIZE >> (PAGE_SHIFT + 3); pcxl_res_hint = 0; pcxl_res_map = (char *)__get_free_pages(GFP_KERNEL, |