Skip to content

Commit 61f8537

Browse files
committed
ASoc: Another series to convert to struct
Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>: This is another series to convert ASoC drivers to use struct platform_driver:remove_new(). The rockchip one was already send before but with a wrong subject prefix, the cs42l43 driver is newer than the last series. The remaining five patches are for driver combos that my coccinelle patch failed to detect before.
2 parents 145d7e5 + 7242265 commit 61f8537

24 files changed

Lines changed: 27 additions & 41 deletions

include/sound/simple_card_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ int simple_util_init_aux_jacks(struct simple_util_priv *priv,
188188
char *prefix);
189189
int simple_util_init_priv(struct simple_util_priv *priv,
190190
struct link_info *li);
191-
int simple_util_remove(struct platform_device *pdev);
191+
void simple_util_remove(struct platform_device *pdev);
192192

193193
int graph_util_card_probe(struct snd_soc_card *card);
194194
int graph_util_is_ports0(struct device_node *port);

sound/soc/codecs/cs42l43.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,13 +2232,11 @@ static int cs42l43_codec_probe(struct platform_device *pdev)
22322232
return ret;
22332233
}
22342234

2235-
static int cs42l43_codec_remove(struct platform_device *pdev)
2235+
static void cs42l43_codec_remove(struct platform_device *pdev)
22362236
{
22372237
struct cs42l43_codec *priv = platform_get_drvdata(pdev);
22382238

22392239
clk_put(priv->mclk);
2240-
2241-
return 0;
22422240
}
22432241

22442242
static int cs42l43_codec_runtime_resume(struct device *dev)
@@ -2269,7 +2267,7 @@ static struct platform_driver cs42l43_codec_driver = {
22692267
},
22702268

22712269
.probe = cs42l43_codec_probe,
2272-
.remove = cs42l43_codec_remove,
2270+
.remove_new = cs42l43_codec_remove,
22732271
.id_table = cs42l43_codec_id_table,
22742272
};
22752273
module_platform_driver(cs42l43_codec_driver);

sound/soc/generic/audio-graph-card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static struct platform_driver graph_card = {
644644
.of_match_table = graph_of_match,
645645
},
646646
.probe = graph_probe,
647-
.remove = simple_util_remove,
647+
.remove_new = simple_util_remove,
648648
};
649649
module_platform_driver(graph_card);
650650

sound/soc/generic/audio-graph-card2-custom-sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static struct platform_driver custom_card = {
176176
.of_match_table = custom_of_match,
177177
},
178178
.probe = custom_probe,
179-
.remove = simple_util_remove,
179+
.remove_new = simple_util_remove,
180180
};
181181
module_platform_driver(custom_card);
182182

sound/soc/generic/audio-graph-card2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ static struct platform_driver graph_card = {
12241224
.of_match_table = graph_of_match,
12251225
},
12261226
.probe = graph_probe,
1227-
.remove = simple_util_remove,
1227+
.remove_new = simple_util_remove,
12281228
};
12291229
module_platform_driver(graph_card);
12301230

sound/soc/generic/simple-card-utils.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,13 +958,11 @@ int simple_util_init_priv(struct simple_util_priv *priv,
958958
}
959959
EXPORT_SYMBOL_GPL(simple_util_init_priv);
960960

961-
int simple_util_remove(struct platform_device *pdev)
961+
void simple_util_remove(struct platform_device *pdev)
962962
{
963963
struct snd_soc_card *card = platform_get_drvdata(pdev);
964964

965965
simple_util_clean_reference(card);
966-
967-
return 0;
968966
}
969967
EXPORT_SYMBOL_GPL(simple_util_remove);
970968

sound/soc/generic/simple-card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static struct platform_driver simple_card = {
827827
.of_match_table = simple_of_match,
828828
},
829829
.probe = simple_probe,
830-
.remove = simple_util_remove,
830+
.remove_new = simple_util_remove,
831831
};
832832

833833
module_platform_driver(simple_card);

sound/soc/meson/axg-card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ MODULE_DEVICE_TABLE(of, axg_card_of_match);
360360

361361
static struct platform_driver axg_card_pdrv = {
362362
.probe = meson_card_probe,
363-
.remove = meson_card_remove,
363+
.remove_new = meson_card_remove,
364364
.driver = {
365365
.name = "axg-sound-card",
366366
.of_match_table = axg_card_of_match,

sound/soc/meson/gx-card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ MODULE_DEVICE_TABLE(of, gx_card_of_match);
130130

131131
static struct platform_driver gx_card_pdrv = {
132132
.probe = meson_card_probe,
133-
.remove = meson_card_remove,
133+
.remove_new = meson_card_remove,
134134
.driver = {
135135
.name = "gx-sound-card",
136136
.of_match_table = gx_card_of_match,

sound/soc/meson/meson-card-utils.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,11 @@ int meson_card_probe(struct platform_device *pdev)
327327
}
328328
EXPORT_SYMBOL_GPL(meson_card_probe);
329329

330-
int meson_card_remove(struct platform_device *pdev)
330+
void meson_card_remove(struct platform_device *pdev)
331331
{
332332
struct meson_card *priv = platform_get_drvdata(pdev);
333333

334334
meson_card_clean_references(priv);
335-
336-
return 0;
337335
}
338336
EXPORT_SYMBOL_GPL(meson_card_remove);
339337

0 commit comments

Comments
 (0)