]> err.no Git - linux-2.6/blobdiff - arch/sparc/kernel/of_device.c
Pull motherboard into test branch
[linux-2.6] / arch / sparc / kernel / of_device.c
index 46200c43ffb129a4ed51f3430126d927895d29f4..dab6169e31ca42467a211a7570f863a08e250aff 100644 (file)
@@ -793,10 +793,9 @@ struct of_device* of_platform_device_create(struct device_node *np,
 {
        struct of_device *dev;
 
-       dev = kmalloc(sizeof(*dev), GFP_KERNEL);
+       dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
                return NULL;
-       memset(dev, 0, sizeof(*dev));
 
        dev->dev.parent = parent;
        dev->dev.bus = bus;