|
@@ -1302,8 +1302,8 @@ snd_nm256_mixer(struct nm256 *chip)
|
|
.read = snd_nm256_ac97_read,
|
|
.read = snd_nm256_ac97_read,
|
|
};
|
|
};
|
|
|
|
|
|
- chip->ac97_regs = kcalloc(sizeof(short),
|
|
|
|
- ARRAY_SIZE(nm256_ac97_init_val), GFP_KERNEL);
|
|
|
|
|
|
+ chip->ac97_regs = kcalloc(ARRAY_SIZE(nm256_ac97_init_val),
|
|
|
|
+ sizeof(short), GFP_KERNEL);
|
|
if (! chip->ac97_regs)
|
|
if (! chip->ac97_regs)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|