diff options
-rw-r--r-- | sound/soc/codecs/wm2000.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index 480ceb07c3ed..abfa052c07d8 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c | |||
@@ -826,8 +826,7 @@ static int wm2000_i2c_probe(struct i2c_client *i2c, | |||
826 | int reg; | 826 | int reg; |
827 | u16 id; | 827 | u16 id; |
828 | 828 | ||
829 | wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv), | 829 | wm2000 = devm_kzalloc(&i2c->dev, sizeof(*wm2000), GFP_KERNEL); |
830 | GFP_KERNEL); | ||
831 | if (!wm2000) | 830 | if (!wm2000) |
832 | return -ENOMEM; | 831 | return -ENOMEM; |
833 | 832 | ||