diff options
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 8cc14fc6b6f1..cec0eceae552 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c | |||
@@ -1007,10 +1007,9 @@ struct of_device* of_platform_device_create(struct device_node *np, | |||
1007 | { | 1007 | { |
1008 | struct of_device *dev; | 1008 | struct of_device *dev; |
1009 | 1009 | ||
1010 | dev = kmalloc(sizeof(*dev), GFP_KERNEL); | 1010 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1011 | if (!dev) | 1011 | if (!dev) |
1012 | return NULL; | 1012 | return NULL; |
1013 | memset(dev, 0, sizeof(*dev)); | ||
1014 | 1013 | ||
1015 | dev->dev.parent = parent; | 1014 | dev->dev.parent = parent; |
1016 | dev->dev.bus = bus; | 1015 | dev->dev.bus = bus; |