hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/sound/soc/codecs/cs42l56.c
....@@ -1193,18 +1193,12 @@
11931193 if (pdata) {
11941194 cs42l56->pdata = *pdata;
11951195 } else {
1196
- pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata),
1197
- GFP_KERNEL);
1198
- if (!pdata)
1199
- return -ENOMEM;
1200
-
12011196 if (i2c_client->dev.of_node) {
12021197 ret = cs42l56_handle_of_data(i2c_client,
12031198 &cs42l56->pdata);
12041199 if (ret != 0)
12051200 return ret;
12061201 }
1207
- cs42l56->pdata = *pdata;
12081202 }
12091203
12101204 if (cs42l56->pdata.gpio_nreset) {