diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/arm/kernel/ecard.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/arm/kernel/ecard.c')
| -rw-r--r-- | arch/arm/kernel/ecard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 74ea29c3205e..00aa225e8d95 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c | |||
| @@ -807,14 +807,12 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot) | |||
| 807 | unsigned long base; | 807 | unsigned long base; |
| 808 | int i; | 808 | int i; |
| 809 | 809 | ||
| 810 | ec = kmalloc(sizeof(ecard_t), GFP_KERNEL); | 810 | ec = kzalloc(sizeof(ecard_t), GFP_KERNEL); |
| 811 | if (!ec) { | 811 | if (!ec) { |
| 812 | ec = ERR_PTR(-ENOMEM); | 812 | ec = ERR_PTR(-ENOMEM); |
| 813 | goto nomem; | 813 | goto nomem; |
| 814 | } | 814 | } |
| 815 | 815 | ||
| 816 | memset(ec, 0, sizeof(ecard_t)); | ||
| 817 | |||
| 818 | ec->slot_no = slot; | 816 | ec->slot_no = slot; |
| 819 | ec->type = type; | 817 | ec->type = type; |
| 820 | ec->irq = NO_IRQ; | 818 | ec->irq = NO_IRQ; |
