summaryrefslogtreecommitdiff
path: root/sound/i2c/cs8427.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/i2c/cs8427.c')
-rw-r--r--sound/i2c/cs8427.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/cs8427.c b/sound/i2c/cs8427.c
index 46f081268348..1de985ba85d9 100644
--- a/sound/i2c/cs8427.c
+++ b/sound/i2c/cs8427.c
@@ -269,7 +269,7 @@ int snd_cs8427_create(struct snd_i2c_bus *bus,
&device);
if (err < 0)
return err;
- chip = device->private_data = kzalloc(sizeof(*chip), GFP_KERNEL);
+ chip = device->private_data = kzalloc_obj(*chip);
if (chip == NULL) {
snd_i2c_device_free(device);
return -ENOMEM;