aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR_D700.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/NCR_D700.c')
-rw-r--r--drivers/scsi/NCR_D700.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c
index 3a8089705feb..9e64b21ef637 100644
--- a/drivers/scsi/NCR_D700.c
+++ b/drivers/scsi/NCR_D700.c
@@ -97,7 +97,6 @@
97#include <linux/kernel.h> 97#include <linux/kernel.h>
98#include <linux/module.h> 98#include <linux/module.h>
99#include <linux/mca.h> 99#include <linux/mca.h>
100#include <linux/interrupt.h>
101#include <asm/io.h> 100#include <asm/io.h>
102#include <scsi/scsi_host.h> 101#include <scsi/scsi_host.h>
103#include <scsi/scsi_device.h> 102#include <scsi/scsi_device.h>
@@ -314,10 +313,10 @@ NCR_D700_probe(struct device *dev)
314 break; 313 break;
315 } 314 }
316 315
317 p = kmalloc(sizeof(*p), GFP_KERNEL); 316 p = kzalloc(sizeof(*p), GFP_KERNEL);
318 if (!p) 317 if (!p)
319 return -ENOMEM; 318 return -ENOMEM;
320 memset(p, '\0', sizeof(*p)); 319
321 p->dev = dev; 320 p->dev = dev;
322 snprintf(p->name, sizeof(p->name), "D700(%s)", dev->bus_id); 321 snprintf(p->name, sizeof(p->name), "D700(%s)", dev->bus_id);
323 if (request_irq(irq, NCR_D700_intr, IRQF_SHARED, p->name, p)) { 322 if (request_irq(irq, NCR_D700_intr, IRQF_SHARED, p->name, p)) {