[ALSA] make snd-powermac load even when it can't bind the device
[firefly-linux-kernel-4.4.55.git] / sound / ppc / tumbler.c
index 692c6117767859f3749602372b0cb61112466ece..84f6b19c07ca0c38f7c4057bb7a87ef3fd8b74b8 100644 (file)
@@ -1316,10 +1316,9 @@ int __init snd_pmac_tumbler_init(struct snd_pmac *chip)
                request_module("i2c-powermac");
 #endif /* CONFIG_KMOD */       
 
-       mix = kmalloc(sizeof(*mix), GFP_KERNEL);
+       mix = kzalloc(sizeof(*mix), GFP_KERNEL);
        if (! mix)
                return -ENOMEM;
-       memset(mix, 0, sizeof(*mix));
        mix->headphone_irq = -1;
 
        chip->mixer_data = mix;