aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/mips/swarm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/mips/swarm.c')
-rw-r--r--drivers/ide/mips/swarm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/mips/swarm.c b/drivers/ide/mips/swarm.c
index 6e935d7c63fd..c2e29571b007 100644
--- a/drivers/ide/mips/swarm.c
+++ b/drivers/ide/mips/swarm.c
@@ -165,12 +165,11 @@ static int __devinit swarm_ide_init_module(void)
165 goto out; 165 goto out;
166 } 166 }
167 167
168 if (!(pldev = kmalloc(sizeof (*pldev), GFP_KERNEL))) { 168 if (!(pldev = kzalloc(sizeof (*pldev), GFP_KERNEL))) {
169 err = -ENOMEM; 169 err = -ENOMEM;
170 goto out_unregister_driver; 170 goto out_unregister_driver;
171 } 171 }
172 172
173 memset (pldev, 0, sizeof (*pldev));
174 pldev->name = swarm_ide_string; 173 pldev->name = swarm_ide_string;
175 pldev->id = 0; 174 pldev->id = 0;
176 pldev->dev.release = swarm_ide_platform_release; 175 pldev->dev.release = swarm_ide_platform_release;