diff options
Diffstat (limited to 'drivers/sh')
-rw-r--r-- | drivers/sh/superhyway/superhyway.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/sh/superhyway/superhyway.c b/drivers/sh/superhyway/superhyway.c index 94b229031198..7d873b3b0513 100644 --- a/drivers/sh/superhyway/superhyway.c +++ b/drivers/sh/superhyway/superhyway.c | |||
@@ -56,11 +56,10 @@ int superhyway_add_device(unsigned long base, struct superhyway_device *sdev, | |||
56 | struct superhyway_device *dev = sdev; | 56 | struct superhyway_device *dev = sdev; |
57 | 57 | ||
58 | if (!dev) { | 58 | if (!dev) { |
59 | dev = kmalloc(sizeof(struct superhyway_device), GFP_KERNEL); | 59 | dev = kzalloc(sizeof(struct superhyway_device), GFP_KERNEL); |
60 | if (!dev) | 60 | if (!dev) |
61 | return -ENOMEM; | 61 | return -ENOMEM; |
62 | 62 | ||
63 | memset(dev, 0, sizeof(struct superhyway_device)); | ||
64 | } | 63 | } |
65 | 64 | ||
66 | dev->bus = bus; | 65 | dev->bus = bus; |