diff options
Diffstat (limited to 'drivers/scsi/NCR_Q720.c')
-rw-r--r-- | drivers/scsi/NCR_Q720.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/NCR_Q720.c b/drivers/scsi/NCR_Q720.c index 778844c3544a..a8bbdc2273b8 100644 --- a/drivers/scsi/NCR_Q720.c +++ b/drivers/scsi/NCR_Q720.c | |||
@@ -148,11 +148,10 @@ NCR_Q720_probe(struct device *dev) | |||
148 | __u32 base_addr, mem_size; | 148 | __u32 base_addr, mem_size; |
149 | void __iomem *mem_base; | 149 | void __iomem *mem_base; |
150 | 150 | ||
151 | p = kmalloc(sizeof(*p), GFP_KERNEL); | 151 | p = kzalloc(sizeof(*p), GFP_KERNEL); |
152 | if (!p) | 152 | if (!p) |
153 | return -ENOMEM; | 153 | return -ENOMEM; |
154 | 154 | ||
155 | memset(p, 0, sizeof(*p)); | ||
156 | pos2 = mca_device_read_pos(mca_dev, 2); | 155 | pos2 = mca_device_read_pos(mca_dev, 2); |
157 | /* enable device */ | 156 | /* enable device */ |
158 | pos2 |= NCR_Q720_POS2_BOARD_ENABLE | NCR_Q720_POS2_INTERRUPT_ENABLE; | 157 | pos2 |= NCR_Q720_POS2_BOARD_ENABLE | NCR_Q720_POS2_INTERRUPT_ENABLE; |