|
@@ -142,7 +142,7 @@ static int ns558_isa_probe(int io)
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
|
|
|
- ns558 = kcalloc(1, sizeof(struct ns558), GFP_KERNEL);
|
|
|
+ ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
|
|
|
port = gameport_allocate_port();
|
|
|
if (!ns558 || !port) {
|
|
|
printk(KERN_ERR "ns558: Memory allocation failed.\n");
|
|
@@ -215,7 +215,7 @@ static int ns558_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
|
|
|
if (!request_region(ioport, iolen, "ns558-pnp"))
|
|
|
return -EBUSY;
|
|
|
|
|
|
- ns558 = kcalloc(1, sizeof(struct ns558), GFP_KERNEL);
|
|
|
+ ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
|
|
|
port = gameport_allocate_port();
|
|
|
if (!ns558 || !port) {
|
|
|
printk(KERN_ERR "ns558: Memory allocation failed\n");
|