aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm26
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm26')
-rw-r--r--arch/arm26/kernel/ecard.c4
-rw-r--r--arch/arm26/mm/fault.c2
-rw-r--r--arch/arm26/mm/memc.c6
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c
index 047d0a408b9d..43dd41be71fb 100644
--- a/arch/arm26/kernel/ecard.c
+++ b/arch/arm26/kernel/ecard.c
@@ -620,12 +620,10 @@ ecard_probe(int slot, card_type_t type)
620 struct ex_ecid cid; 620 struct ex_ecid cid;
621 int i, rc = -ENOMEM; 621 int i, rc = -ENOMEM;
622 622
623 ec = kmalloc(sizeof(ecard_t), GFP_KERNEL); 623 ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
624 if (!ec) 624 if (!ec)
625 goto nomem; 625 goto nomem;
626 626
627 memset(ec, 0, sizeof(ecard_t));
628
629 ec->slot_no = slot; 627 ec->slot_no = slot;
630 ec->type = type; 628 ec->type = type;
631 ec->irq = NO_IRQ; 629 ec->irq = NO_IRQ;
diff --git a/arch/arm26/mm/fault.c b/arch/arm26/mm/fault.c
index a1f6d8a9cc32..93c0cee0fb5e 100644
--- a/arch/arm26/mm/fault.c
+++ b/arch/arm26/mm/fault.c
@@ -215,7 +215,7 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
215 * If we're in an interrupt or have no user 215 * If we're in an interrupt or have no user
216 * context, we must not take the fault.. 216 * context, we must not take the fault..
217 */ 217 */
218 if (in_interrupt() || !mm) 218 if (in_atomic() || !mm)
219 goto no_context; 219 goto no_context;
220 220
221 down_read(&mm->mmap_sem); 221 down_read(&mm->mmap_sem);
diff --git a/arch/arm26/mm/memc.c b/arch/arm26/mm/memc.c
index 34def6397c3c..f2901581d4da 100644
--- a/arch/arm26/mm/memc.c
+++ b/arch/arm26/mm/memc.c
@@ -24,7 +24,7 @@
24 24
25#define MEMC_TABLE_SIZE (256*sizeof(unsigned long)) 25#define MEMC_TABLE_SIZE (256*sizeof(unsigned long))
26 26
27kmem_cache_t *pte_cache, *pgd_cache; 27struct kmem_cache *pte_cache, *pgd_cache;
28int page_nr; 28int page_nr;
29 29
30/* 30/*
@@ -162,12 +162,12 @@ void __init create_memmap_holes(struct meminfo *mi)
162{ 162{
163} 163}
164 164
165static void pte_cache_ctor(void *pte, kmem_cache_t *cache, unsigned long flags) 165static void pte_cache_ctor(void *pte, struct kmem_cache *cache, unsigned long flags)
166{ 166{
167 memzero(pte, sizeof(pte_t) * PTRS_PER_PTE); 167 memzero(pte, sizeof(pte_t) * PTRS_PER_PTE);
168} 168}
169 169
170static void pgd_cache_ctor(void *pgd, kmem_cache_t *cache, unsigned long flags) 170static void pgd_cache_ctor(void *pgd, struct kmem_cache *cache, unsigned long flags)
171{ 171{
172 memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t)); 172 memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t));
173} 173}