* [PATCH 003/173] ALSA: pxa2xx: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
@ 2023-03-15 15:04 ` Uwe Kleine-König
2023-03-15 15:04 ` [PATCH 004/173] ALSA: atmel: ac97: " Uwe Kleine-König
` (44 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:04 UTC (permalink / raw)
To: Daniel Mack, Haojian Zhuang, Robert Jarzmik, Jaroslav Kysela,
Takashi Iwai
Cc: linux-arm-kernel, alsa-devel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/arm/pxa2xx-ac97.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index c162086455ad..2d83ad91f968 100644
--- a/sound/arm/pxa2xx-ac97.c
+++ b/sound/arm/pxa2xx-ac97.c
@@ -262,7 +262,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev)
return ret;
}
-static int pxa2xx_ac97_remove(struct platform_device *dev)
+static void pxa2xx_ac97_remove(struct platform_device *dev)
{
struct snd_card *card = platform_get_drvdata(dev);
@@ -270,13 +270,11 @@ static int pxa2xx_ac97_remove(struct platform_device *dev)
snd_card_free(card);
pxa2xx_ac97_hw_remove(dev);
}
-
- return 0;
}
static struct platform_driver pxa2xx_ac97_driver = {
.probe = pxa2xx_ac97_probe,
- .remove = pxa2xx_ac97_remove,
+ .remove_new = pxa2xx_ac97_remove,
.driver = {
.name = "pxa2xx-ac97",
#ifdef CONFIG_PM_SLEEP
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 004/173] ALSA: atmel: ac97: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
2023-03-15 15:04 ` [PATCH 003/173] ALSA: pxa2xx: Convert to platform remove callback returning void Uwe Kleine-König
@ 2023-03-15 15:04 ` Uwe Kleine-König
2023-03-16 11:11 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 024/173] ASoC: atmel: atmel-i2s: " Uwe Kleine-König
` (43 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:04 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/atmel/ac97c.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 66ecbd4d034e..c8912b8a1dc5 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -843,7 +843,7 @@ static SIMPLE_DEV_PM_OPS(atmel_ac97c_pm, atmel_ac97c_suspend, atmel_ac97c_resume
#define ATMEL_AC97C_PM_OPS NULL
#endif
-static int atmel_ac97c_remove(struct platform_device *pdev)
+static void atmel_ac97c_remove(struct platform_device *pdev)
{
struct snd_card *card = platform_get_drvdata(pdev);
struct atmel_ac97c *chip = get_chip(card);
@@ -858,13 +858,11 @@ static int atmel_ac97c_remove(struct platform_device *pdev)
free_irq(chip->irq, chip);
snd_card_free(card);
-
- return 0;
}
static struct platform_driver atmel_ac97c_driver = {
.probe = atmel_ac97c_probe,
- .remove = atmel_ac97c_remove,
+ .remove_new = atmel_ac97c_remove,
.driver = {
.name = "atmel_ac97c",
.pm = ATMEL_AC97C_PM_OPS,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 024/173] ASoC: atmel: atmel-i2s: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
2023-03-15 15:04 ` [PATCH 003/173] ALSA: pxa2xx: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-15 15:04 ` [PATCH 004/173] ALSA: atmel: ac97: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 025/173] ASoC: atmel: atmel_wm8904: " Uwe Kleine-König
` (42 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/atmel-i2s.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c
index 425d66edbf86..49930baf5e4d 100644
--- a/sound/soc/atmel/atmel-i2s.c
+++ b/sound/soc/atmel/atmel-i2s.c
@@ -717,13 +717,11 @@ static int atmel_i2s_probe(struct platform_device *pdev)
return 0;
}
-static int atmel_i2s_remove(struct platform_device *pdev)
+static void atmel_i2s_remove(struct platform_device *pdev)
{
struct atmel_i2s_dev *dev = platform_get_drvdata(pdev);
clk_disable_unprepare(dev->pclk);
-
- return 0;
}
static struct platform_driver atmel_i2s_driver = {
@@ -732,7 +730,7 @@ static struct platform_driver atmel_i2s_driver = {
.of_match_table = of_match_ptr(atmel_i2s_dt_ids),
},
.probe = atmel_i2s_probe,
- .remove = atmel_i2s_remove,
+ .remove_new = atmel_i2s_remove,
};
module_platform_driver(atmel_i2s_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 025/173] ASoC: atmel: atmel_wm8904: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (2 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 024/173] ASoC: atmel: atmel-i2s: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: " Uwe Kleine-König
` (41 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/atmel_wm8904.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel/atmel_wm8904.c
index 9c974c4e187d..00e98136bec2 100644
--- a/sound/soc/atmel/atmel_wm8904.c
+++ b/sound/soc/atmel/atmel_wm8904.c
@@ -161,7 +161,7 @@ static int atmel_asoc_wm8904_probe(struct platform_device *pdev)
return ret;
}
-static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
+static void atmel_asoc_wm8904_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct snd_soc_dai_link *dailink = &atmel_asoc_wm8904_dailink;
@@ -171,8 +171,6 @@ static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
snd_soc_unregister_card(card);
atmel_ssc_put_audio(id);
-
- return 0;
}
#ifdef CONFIG_OF
@@ -190,7 +188,7 @@ static struct platform_driver atmel_asoc_wm8904_driver = {
.pm = &snd_soc_pm_ops,
},
.probe = atmel_asoc_wm8904_probe,
- .remove = atmel_asoc_wm8904_remove,
+ .remove_new = atmel_asoc_wm8904_remove,
};
module_platform_driver(atmel_asoc_wm8904_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (3 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 025/173] ASoC: atmel: atmel_wm8904: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 027/173] ASoC: atmel: mchp-pdmc: " Uwe Kleine-König
` (40 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/mchp-i2s-mcc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c
index 6dfb96c576ff..7c83d48ca1a0 100644
--- a/sound/soc/atmel/mchp-i2s-mcc.c
+++ b/sound/soc/atmel/mchp-i2s-mcc.c
@@ -1088,13 +1088,11 @@ static int mchp_i2s_mcc_probe(struct platform_device *pdev)
return 0;
}
-static int mchp_i2s_mcc_remove(struct platform_device *pdev)
+static void mchp_i2s_mcc_remove(struct platform_device *pdev)
{
struct mchp_i2s_mcc_dev *dev = platform_get_drvdata(pdev);
clk_disable_unprepare(dev->pclk);
-
- return 0;
}
static struct platform_driver mchp_i2s_mcc_driver = {
@@ -1103,7 +1101,7 @@ static struct platform_driver mchp_i2s_mcc_driver = {
.of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids),
},
.probe = mchp_i2s_mcc_probe,
- .remove = mchp_i2s_mcc_remove,
+ .remove_new = mchp_i2s_mcc_remove,
};
module_platform_driver(mchp_i2s_mcc_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 027/173] ASoC: atmel: mchp-pdmc: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (4 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 028/173] ASoC: atmel: mchp-spdifrx: " Uwe Kleine-König
` (39 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/mchp-pdmc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c
index 1aed3baa9369..7fd2c3e100e8 100644
--- a/sound/soc/atmel/mchp-pdmc.c
+++ b/sound/soc/atmel/mchp-pdmc.c
@@ -1134,7 +1134,7 @@ static int mchp_pdmc_probe(struct platform_device *pdev)
return ret;
}
-static int mchp_pdmc_remove(struct platform_device *pdev)
+static void mchp_pdmc_remove(struct platform_device *pdev)
{
struct mchp_pdmc *dd = platform_get_drvdata(pdev);
@@ -1142,8 +1142,6 @@ static int mchp_pdmc_remove(struct platform_device *pdev)
mchp_pdmc_runtime_suspend(dd->dev);
pm_runtime_disable(dd->dev);
-
- return 0;
}
static const struct of_device_id mchp_pdmc_of_match[] = {
@@ -1168,7 +1166,7 @@ static struct platform_driver mchp_pdmc_driver = {
.pm = pm_ptr(&mchp_pdmc_pm_ops),
},
.probe = mchp_pdmc_probe,
- .remove = mchp_pdmc_remove,
+ .remove_new = mchp_pdmc_remove,
};
module_platform_driver(mchp_pdmc_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 028/173] ASoC: atmel: mchp-spdifrx: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (5 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 027/173] ASoC: atmel: mchp-pdmc: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 029/173] ASoC: atmel: mchp-spdiftx: " Uwe Kleine-König
` (38 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/mchp-spdifrx.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c
index eb0c0ef4541e..ff6aba143aee 100644
--- a/sound/soc/atmel/mchp-spdifrx.c
+++ b/sound/soc/atmel/mchp-spdifrx.c
@@ -1183,20 +1183,18 @@ static int mchp_spdifrx_probe(struct platform_device *pdev)
return err;
}
-static int mchp_spdifrx_remove(struct platform_device *pdev)
+static void mchp_spdifrx_remove(struct platform_device *pdev)
{
struct mchp_spdifrx_dev *dev = platform_get_drvdata(pdev);
pm_runtime_disable(dev->dev);
if (!pm_runtime_status_suspended(dev->dev))
mchp_spdifrx_runtime_suspend(dev->dev);
-
- return 0;
}
static struct platform_driver mchp_spdifrx_driver = {
.probe = mchp_spdifrx_probe,
- .remove = mchp_spdifrx_remove,
+ .remove_new = mchp_spdifrx_remove,
.driver = {
.name = "mchp_spdifrx",
.of_match_table = of_match_ptr(mchp_spdifrx_dt_ids),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 029/173] ASoC: atmel: mchp-spdiftx: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (6 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 028/173] ASoC: atmel: mchp-spdifrx: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 030/173] ASoC: atmel: mikroe-proto: " Uwe Kleine-König
` (37 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/mchp-spdiftx.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c
index 20d135c718b0..850cd97bc229 100644
--- a/sound/soc/atmel/mchp-spdiftx.c
+++ b/sound/soc/atmel/mchp-spdiftx.c
@@ -891,7 +891,7 @@ static int mchp_spdiftx_probe(struct platform_device *pdev)
return err;
}
-static int mchp_spdiftx_remove(struct platform_device *pdev)
+static void mchp_spdiftx_remove(struct platform_device *pdev)
{
struct mchp_spdiftx_dev *dev = platform_get_drvdata(pdev);
@@ -899,13 +899,11 @@ static int mchp_spdiftx_remove(struct platform_device *pdev)
mchp_spdiftx_runtime_suspend(dev->dev);
pm_runtime_disable(dev->dev);
-
- return 0;
}
static struct platform_driver mchp_spdiftx_driver = {
.probe = mchp_spdiftx_probe,
- .remove = mchp_spdiftx_remove,
+ .remove_new = mchp_spdiftx_remove,
.driver = {
.name = "mchp_spdiftx",
.of_match_table = of_match_ptr(mchp_spdiftx_dt_ids),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 030/173] ASoC: atmel: mikroe-proto: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (7 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 029/173] ASoC: atmel: mchp-spdiftx: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: " Uwe Kleine-König
` (36 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/mikroe-proto.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/mikroe-proto.c b/sound/soc/atmel/mikroe-proto.c
index 954460719aa3..30c87c2c1b0b 100644
--- a/sound/soc/atmel/mikroe-proto.c
+++ b/sound/soc/atmel/mikroe-proto.c
@@ -155,11 +155,9 @@ static int snd_proto_probe(struct platform_device *pdev)
return ret;
}
-static int snd_proto_remove(struct platform_device *pdev)
+static void snd_proto_remove(struct platform_device *pdev)
{
snd_soc_unregister_card(&snd_proto);
-
- return 0;
}
static const struct of_device_id snd_proto_of_match[] = {
@@ -174,7 +172,7 @@ static struct platform_driver snd_proto_driver = {
.of_match_table = snd_proto_of_match,
},
.probe = snd_proto_probe,
- .remove = snd_proto_remove,
+ .remove_new = snd_proto_remove,
};
module_platform_driver(snd_proto_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (8 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 030/173] ASoC: atmel: mikroe-proto: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: " Uwe Kleine-König
` (35 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/sam9g20_wm8731.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 785b9d01d8af..baf38964b491 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -186,14 +186,12 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
return ret;
}
-static int at91sam9g20ek_audio_remove(struct platform_device *pdev)
+static void at91sam9g20ek_audio_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
snd_soc_unregister_card(card);
atmel_ssc_put_audio(0);
-
- return 0;
}
#ifdef CONFIG_OF
@@ -210,7 +208,7 @@ static struct platform_driver at91sam9g20ek_audio_driver = {
.of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids),
},
.probe = at91sam9g20ek_audio_probe,
- .remove = at91sam9g20ek_audio_remove,
+ .remove_new = at91sam9g20ek_audio_remove,
};
module_platform_driver(at91sam9g20ek_audio_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (9 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 033/173] ASoC: atmel: tse850-pcm5142: " Uwe Kleine-König
` (34 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/sam9x5_wm8731.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 99310e40e7a6..cd1d59a90e02 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -176,14 +176,12 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
return ret;
}
-static int sam9x5_wm8731_driver_remove(struct platform_device *pdev)
+static void sam9x5_wm8731_driver_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct sam9x5_drvdata *priv = card->drvdata;
atmel_ssc_put_audio(priv->ssc_id);
-
- return 0;
}
static const struct of_device_id sam9x5_wm8731_of_match[] = {
@@ -198,7 +196,7 @@ static struct platform_driver sam9x5_wm8731_driver = {
.of_match_table = of_match_ptr(sam9x5_wm8731_of_match),
},
.probe = sam9x5_wm8731_driver_probe,
- .remove = sam9x5_wm8731_driver_remove,
+ .remove_new = sam9x5_wm8731_driver_remove,
};
module_platform_driver(sam9x5_wm8731_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 033/173] ASoC: atmel: tse850-pcm5142: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (10 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-15 15:42 ` Peter Rosin
2023-03-16 11:11 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 039/173] ASoC: bcm: cygnus-ssp: " Uwe Kleine-König
` (33 subsequent siblings)
45 siblings, 2 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Peter Rosin, Codrin Ciubotariu, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/atmel/tse850-pcm5142.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/atmel/tse850-pcm5142.c b/sound/soc/atmel/tse850-pcm5142.c
index ef537de7719c..efead272d92b 100644
--- a/sound/soc/atmel/tse850-pcm5142.c
+++ b/sound/soc/atmel/tse850-pcm5142.c
@@ -412,15 +412,13 @@ static int tse850_probe(struct platform_device *pdev)
return ret;
}
-static int tse850_remove(struct platform_device *pdev)
+static void tse850_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
snd_soc_unregister_card(card);
regulator_disable(tse850->ana);
-
- return 0;
}
static const struct of_device_id tse850_dt_ids[] = {
@@ -435,7 +433,7 @@ static struct platform_driver tse850_driver = {
.of_match_table = of_match_ptr(tse850_dt_ids),
},
.probe = tse850_probe,
- .remove = tse850_remove,
+ .remove_new = tse850_remove,
};
module_platform_driver(tse850_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 039/173] ASoC: bcm: cygnus-ssp: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (11 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 033/173] ASoC: atmel: tse850-pcm5142: " Uwe Kleine-König
@ 2023-03-15 15:05 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 076/173] ASoC: fsl: imx-audmux: " Uwe Kleine-König
` (32 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:05 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai, Ray Jui,
Scott Branden, Charles Keepax, Allison Randal, Greg Kroah-Hartman,
Thomas Gleixner
Cc: Broadcom internal kernel review list, alsa-devel,
linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/bcm/cygnus-ssp.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c
index 2a92e33e1fbf..8638bf22ef5c 100644
--- a/sound/soc/bcm/cygnus-ssp.c
+++ b/sound/soc/bcm/cygnus-ssp.c
@@ -1377,11 +1377,9 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
return 0;
}
-static int cygnus_ssp_remove(struct platform_device *pdev)
+static void cygnus_ssp_remove(struct platform_device *pdev)
{
cygnus_soc_platform_unregister(&pdev->dev);
-
- return 0;
}
static const struct of_device_id cygnus_ssp_of_match[] = {
@@ -1392,7 +1390,7 @@ MODULE_DEVICE_TABLE(of, cygnus_ssp_of_match);
static struct platform_driver cygnus_ssp_driver = {
.probe = cygnus_ssp_probe,
- .remove = cygnus_ssp_remove,
+ .remove_new = cygnus_ssp_remove,
.driver = {
.name = "cygnus-ssp",
.of_match_table = cygnus_ssp_of_match,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 076/173] ASoC: fsl: imx-audmux: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (12 preceding siblings ...)
2023-03-15 15:05 ` [PATCH 039/173] ASoC: bcm: cygnus-ssp: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 077/173] ASoC: fsl: imx-pcm-rpmsg: " Uwe Kleine-König
` (31 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Nicolin Chen, Pengutronix Kernel Team,
NXP Linux Team, alsa-devel, linuxppc-dev, linux-arm-kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/fsl/imx-audmux.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
index 582f1e2431ee..be003a117b39 100644
--- a/sound/soc/fsl/imx-audmux.c
+++ b/sound/soc/fsl/imx-audmux.c
@@ -315,12 +315,10 @@ static int imx_audmux_probe(struct platform_device *pdev)
return 0;
}
-static int imx_audmux_remove(struct platform_device *pdev)
+static void imx_audmux_remove(struct platform_device *pdev)
{
if (audmux_type == IMX31_AUDMUX)
audmux_debugfs_remove();
-
- return 0;
}
#ifdef CONFIG_PM_SLEEP
@@ -359,7 +357,7 @@ static const struct dev_pm_ops imx_audmux_pm = {
static struct platform_driver imx_audmux_driver = {
.probe = imx_audmux_probe,
- .remove = imx_audmux_remove,
+ .remove_new = imx_audmux_remove,
.driver = {
.name = DRIVER_NAME,
.pm = &imx_audmux_pm,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 077/173] ASoC: fsl: imx-pcm-rpmsg: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (13 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 076/173] ASoC: fsl: imx-audmux: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 078/173] ASoC: fsl: imx-sgtl5000: " Uwe Kleine-König
` (30 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Nicolin Chen, Pengutronix Kernel Team,
NXP Linux Team, alsa-devel, linuxppc-dev, linux-arm-kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/fsl/imx-pcm-rpmsg.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c
index 6614b3447649..765dad607bf6 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -743,14 +743,12 @@ static int imx_rpmsg_pcm_probe(struct platform_device *pdev)
return ret;
}
-static int imx_rpmsg_pcm_remove(struct platform_device *pdev)
+static void imx_rpmsg_pcm_remove(struct platform_device *pdev)
{
struct rpmsg_info *info = platform_get_drvdata(pdev);
if (info->rpmsg_wq)
destroy_workqueue(info->rpmsg_wq);
-
- return 0;
}
#ifdef CONFIG_PM
@@ -821,7 +819,7 @@ static const struct dev_pm_ops imx_rpmsg_pcm_pm_ops = {
static struct platform_driver imx_pcm_rpmsg_driver = {
.probe = imx_rpmsg_pcm_probe,
- .remove = imx_rpmsg_pcm_remove,
+ .remove_new = imx_rpmsg_pcm_remove,
.driver = {
.name = IMX_PCM_DRV_NAME,
.pm = &imx_rpmsg_pcm_pm_ops,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 078/173] ASoC: fsl: imx-sgtl5000: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (14 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 077/173] ASoC: fsl: imx-pcm-rpmsg: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: " Uwe Kleine-König
` (29 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Nicolin Chen, Pengutronix Kernel Team,
NXP Linux Team, alsa-devel, linuxppc-dev, linux-arm-kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/fsl/imx-sgtl5000.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 580a0d963f0e..26c22783927b 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -193,14 +193,12 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
return ret;
}
-static int imx_sgtl5000_remove(struct platform_device *pdev)
+static void imx_sgtl5000_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(card);
clk_put(data->codec_clk);
-
- return 0;
}
static const struct of_device_id imx_sgtl5000_dt_ids[] = {
@@ -216,7 +214,7 @@ static struct platform_driver imx_sgtl5000_driver = {
.of_match_table = imx_sgtl5000_dt_ids,
},
.probe = imx_sgtl5000_probe,
- .remove = imx_sgtl5000_remove,
+ .remove_new = imx_sgtl5000_remove,
};
module_platform_driver(imx_sgtl5000_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (15 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 078/173] ASoC: fsl: imx-sgtl5000: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: " Uwe Kleine-König
` (28 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger, Jiasheng Jiang
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/common/mtk-btcvsd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/common/mtk-btcvsd.c b/sound/soc/mediatek/common/mtk-btcvsd.c
index 1c28b41e4311..1ba0633e542f 100644
--- a/sound/soc/mediatek/common/mtk-btcvsd.c
+++ b/sound/soc/mediatek/common/mtk-btcvsd.c
@@ -1387,13 +1387,12 @@ static int mtk_btcvsd_snd_probe(struct platform_device *pdev)
return ret;
}
-static int mtk_btcvsd_snd_remove(struct platform_device *pdev)
+static void mtk_btcvsd_snd_remove(struct platform_device *pdev)
{
struct mtk_btcvsd_snd *btcvsd = dev_get_drvdata(&pdev->dev);
iounmap(btcvsd->bt_pkv_base);
iounmap(btcvsd->bt_sram_bank2_base);
- return 0;
}
static const struct of_device_id mtk_btcvsd_snd_dt_match[] = {
@@ -1408,7 +1407,7 @@ static struct platform_driver mtk_btcvsd_snd_driver = {
.of_match_table = mtk_btcvsd_snd_dt_match,
},
.probe = mtk_btcvsd_snd_probe,
- .remove = mtk_btcvsd_snd_remove,
+ .remove_new = mtk_btcvsd_snd_remove,
};
module_platform_driver(mtk_btcvsd_snd_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (16 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: " Uwe Kleine-König
` (27 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
index 0f178de92a0f..c9d4420e9b4c 100644
--- a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
+++ b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
@@ -1439,14 +1439,12 @@ static int mt2701_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt2701_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt2701_afe_pcm_dev_remove(struct platform_device *pdev)
{
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
mt2701_afe_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct mt2701_soc_variants mt2701_soc_v1 = {
@@ -1477,7 +1475,7 @@ static struct platform_driver mt2701_afe_pcm_driver = {
.pm = &mt2701_afe_pm_ops,
},
.probe = mt2701_afe_pcm_dev_probe,
- .remove = mt2701_afe_pcm_dev_remove,
+ .remove_new = mt2701_afe_pcm_dev_remove,
};
module_platform_driver(mt2701_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (17 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: " Uwe Kleine-König
` (26 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
index fb4abec9aa5f..43038444c43d 100644
--- a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
+++ b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
@@ -876,14 +876,12 @@ static int mt6797_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt6797_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt6797_afe_pcm_dev_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
mt6797_afe_runtime_suspend(&pdev->dev);
pm_runtime_put_sync(&pdev->dev);
-
- return 0;
}
static const struct of_device_id mt6797_afe_pcm_dt_match[] = {
@@ -904,7 +902,7 @@ static struct platform_driver mt6797_afe_pcm_driver = {
.pm = &mt6797_afe_pm_ops,
},
.probe = mt6797_afe_pcm_dev_probe,
- .remove = mt6797_afe_pcm_dev_remove,
+ .remove_new = mt6797_afe_pcm_dev_remove,
};
module_platform_driver(mt6797_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (18 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: " Uwe Kleine-König
` (25 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger, Ricardo Ribalda, Minghao Chi
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
index bc155dd937e0..f93c2ec8beb7 100644
--- a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
+++ b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
@@ -1195,14 +1195,13 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt8173_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt8173_afe_pcm_dev_remove(struct platform_device *pdev)
{
snd_soc_unregister_component(&pdev->dev);
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
mt8173_afe_runtime_suspend(&pdev->dev);
- return 0;
}
static const struct of_device_id mt8173_afe_pcm_dt_match[] = {
@@ -1223,7 +1222,7 @@ static struct platform_driver mt8173_afe_pcm_driver = {
.pm = &mt8173_afe_pm_ops,
},
.probe = mt8173_afe_pcm_dev_probe,
- .remove = mt8173_afe_pcm_dev_remove,
+ .remove_new = mt8173_afe_pcm_dev_remove,
};
module_platform_driver(mt8173_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (19 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: " Uwe Kleine-König
` (24 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
index 86c8a523fe9e..90422ed2bbcc 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
@@ -1255,13 +1255,11 @@ static int mt8183_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt8183_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt8183_afe_pcm_dev_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
mt8183_afe_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct of_device_id mt8183_afe_pcm_dt_match[] = {
@@ -1282,7 +1280,7 @@ static struct platform_driver mt8183_afe_pcm_driver = {
.pm = &mt8183_afe_pm_ops,
},
.probe = mt8183_afe_pcm_dev_probe,
- .remove = mt8183_afe_pcm_dev_remove,
+ .remove_new = mt8183_afe_pcm_dev_remove,
};
module_platform_driver(mt8183_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (20 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-16 10:12 ` Trevor Wu (吳文良)
2023-03-15 15:06 ` [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: " Uwe Kleine-König
` (23 subsequent siblings)
45 siblings, 2 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger, Trevor Wu, Dan Carpenter
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
index e8e84de86542..e5f9373bed56 100644
--- a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
+++ b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
@@ -3323,11 +3323,9 @@ static int mt8188_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt8188_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt8188_afe_pcm_dev_remove(struct platform_device *pdev)
{
snd_soc_unregister_component(&pdev->dev);
-
- return 0;
}
static const struct of_device_id mt8188_afe_pcm_dt_match[] = {
@@ -3348,7 +3346,7 @@ static struct platform_driver mt8188_afe_pcm_driver = {
.pm = &mt8188_afe_pm_ops,
},
.probe = mt8188_afe_pcm_dev_probe,
- .remove = mt8188_afe_pcm_dev_remove,
+ .remove_new = mt8188_afe_pcm_dev_remove,
};
module_platform_driver(mt8188_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (21 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: " Uwe Kleine-König
` (22 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c b/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
index e1e4ca931551..adff3d667267 100644
--- a/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
+++ b/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
@@ -2353,7 +2353,7 @@ static int mt8192_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt8192_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt8192_afe_pcm_dev_remove(struct platform_device *pdev)
{
struct mtk_base_afe *afe = platform_get_drvdata(pdev);
@@ -2363,7 +2363,6 @@ static int mt8192_afe_pcm_dev_remove(struct platform_device *pdev)
/* disable afe clock */
mt8192_afe_disable_clock(afe);
- return 0;
}
static const struct of_device_id mt8192_afe_pcm_dt_match[] = {
@@ -2384,7 +2383,7 @@ static struct platform_driver mt8192_afe_pcm_driver = {
.pm = &mt8192_afe_pm_ops,
},
.probe = mt8192_afe_pcm_dev_probe,
- .remove = mt8192_afe_pcm_dev_remove,
+ .remove_new = mt8192_afe_pcm_dev_remove,
};
module_platform_driver(mt8192_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (22 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 114/173] ASoC: meson: aiu: " Uwe Kleine-König
` (21 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Matthias Brugger
Cc: AngeloGioacchino Del Regno, alsa-devel, kernel, linux-arm-kernel,
linux-mediatek
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
index 72b2c6d629b9..9e45efeada55 100644
--- a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
+++ b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
@@ -3253,7 +3253,7 @@ static int mt8195_afe_pcm_dev_probe(struct platform_device *pdev)
return ret;
}
-static int mt8195_afe_pcm_dev_remove(struct platform_device *pdev)
+static void mt8195_afe_pcm_dev_remove(struct platform_device *pdev)
{
struct mtk_base_afe *afe = platform_get_drvdata(pdev);
@@ -3264,7 +3264,6 @@ static int mt8195_afe_pcm_dev_remove(struct platform_device *pdev)
mt8195_afe_runtime_suspend(&pdev->dev);
mt8195_afe_deinit_clock(afe);
- return 0;
}
static const struct of_device_id mt8195_afe_pcm_dt_match[] = {
@@ -3285,7 +3284,7 @@ static struct platform_driver mt8195_afe_pcm_driver = {
.pm = &mt8195_afe_pm_ops,
},
.probe = mt8195_afe_pcm_dev_probe,
- .remove = mt8195_afe_pcm_dev_remove,
+ .remove_new = mt8195_afe_pcm_dev_remove,
};
module_platform_driver(mt8195_afe_pcm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 114/173] ASoC: meson: aiu: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (23 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-18 19:49 ` Martin Blumenstingl
2023-03-15 15:06 ` [PATCH 115/173] ASoC: mxs: mxs-sgtl5000: " Uwe Kleine-König
` (20 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Jerome Brunet, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Neil Armstrong, Kevin Hilman
Cc: Martin Blumenstingl, alsa-devel, linux-arm-kernel, linux-amlogic,
kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/meson/aiu.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/meson/aiu.c b/sound/soc/meson/aiu.c
index 88e611e64d14..da351a60df0c 100644
--- a/sound/soc/meson/aiu.c
+++ b/sound/soc/meson/aiu.c
@@ -331,11 +331,9 @@ static int aiu_probe(struct platform_device *pdev)
return ret;
}
-static int aiu_remove(struct platform_device *pdev)
+static void aiu_remove(struct platform_device *pdev)
{
snd_soc_unregister_component(&pdev->dev);
-
- return 0;
}
static const struct aiu_platform_data aiu_gxbb_pdata = {
@@ -364,7 +362,7 @@ MODULE_DEVICE_TABLE(of, aiu_of_match);
static struct platform_driver aiu_pdrv = {
.probe = aiu_probe,
- .remove = aiu_remove,
+ .remove_new = aiu_remove,
.driver = {
.name = "meson-aiu",
.of_match_table = aiu_of_match,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 115/173] ASoC: mxs: mxs-sgtl5000: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (24 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 114/173] ASoC: meson: aiu: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 116/173] ASoC: pxa: mmp-sspa: " Uwe Kleine-König
` (19 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Shawn Guo, Sascha Hauer
Cc: Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
alsa-devel, linux-arm-kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/mxs/mxs-sgtl5000.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c
index 746f40938675..e24e89cc1270 100644
--- a/sound/soc/mxs/mxs-sgtl5000.c
+++ b/sound/soc/mxs/mxs-sgtl5000.c
@@ -169,11 +169,9 @@ static int mxs_sgtl5000_probe(struct platform_device *pdev)
return 0;
}
-static int mxs_sgtl5000_remove(struct platform_device *pdev)
+static void mxs_sgtl5000_remove(struct platform_device *pdev)
{
mxs_saif_put_mclk(0);
-
- return 0;
}
static const struct of_device_id mxs_sgtl5000_dt_ids[] = {
@@ -188,7 +186,7 @@ static struct platform_driver mxs_sgtl5000_audio_driver = {
.of_match_table = mxs_sgtl5000_dt_ids,
},
.probe = mxs_sgtl5000_probe,
- .remove = mxs_sgtl5000_remove,
+ .remove_new = mxs_sgtl5000_remove,
};
module_platform_driver(mxs_sgtl5000_audio_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 116/173] ASoC: pxa: mmp-sspa: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (25 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 115/173] ASoC: mxs: mxs-sgtl5000: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 117/173] ASoC: pxa: pxa2xx-ac97: " Uwe Kleine-König
` (18 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Daniel Mack, Haojian Zhuang, Robert Jarzmik, Liam Girdwood,
Mark Brown, Jaroslav Kysela, Takashi Iwai
Cc: linux-arm-kernel, alsa-devel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/pxa/mmp-sspa.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c
index b3c1744eff91..a1ed141b8795 100644
--- a/sound/soc/pxa/mmp-sspa.c
+++ b/sound/soc/pxa/mmp-sspa.c
@@ -545,7 +545,7 @@ static int asoc_mmp_sspa_probe(struct platform_device *pdev)
return 0;
}
-static int asoc_mmp_sspa_remove(struct platform_device *pdev)
+static void asoc_mmp_sspa_remove(struct platform_device *pdev)
{
struct sspa_priv *sspa = platform_get_drvdata(pdev);
@@ -553,11 +553,10 @@ static int asoc_mmp_sspa_remove(struct platform_device *pdev)
pm_runtime_disable(&pdev->dev);
if (pdev->dev.of_node)
- return 0;
+ return;
clk_put(sspa->audio_clk);
clk_put(sspa->sysclk);
- return 0;
}
#ifdef CONFIG_OF
@@ -575,7 +574,7 @@ static struct platform_driver asoc_mmp_sspa_driver = {
.of_match_table = of_match_ptr(mmp_sspa_of_match),
},
.probe = asoc_mmp_sspa_probe,
- .remove = asoc_mmp_sspa_remove,
+ .remove_new = asoc_mmp_sspa_remove,
};
module_platform_driver(asoc_mmp_sspa_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 117/173] ASoC: pxa: pxa2xx-ac97: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (26 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 116/173] ASoC: pxa: mmp-sspa: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 119/173] ASoC: rockchip: rockchip_i2s: " Uwe Kleine-König
` (17 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Daniel Mack, Haojian Zhuang, Robert Jarzmik, Liam Girdwood,
Mark Brown, Jaroslav Kysela, Takashi Iwai
Cc: linux-arm-kernel, alsa-devel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/pxa/pxa2xx-ac97.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 809ea34736ed..e73bd62c033c 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -263,13 +263,12 @@ static int pxa2xx_ac97_dev_probe(struct platform_device *pdev)
pxa_ac97_dai_driver, ARRAY_SIZE(pxa_ac97_dai_driver));
}
-static int pxa2xx_ac97_dev_remove(struct platform_device *pdev)
+static void pxa2xx_ac97_dev_remove(struct platform_device *pdev)
{
struct ac97_controller *ctrl = platform_get_drvdata(pdev);
snd_ac97_controller_unregister(ctrl);
pxa2xx_ac97_hw_remove(pdev);
- return 0;
}
#ifdef CONFIG_PM_SLEEP
@@ -289,7 +288,7 @@ static SIMPLE_DEV_PM_OPS(pxa2xx_ac97_pm_ops,
static struct platform_driver pxa2xx_ac97_driver = {
.probe = pxa2xx_ac97_dev_probe,
- .remove = pxa2xx_ac97_dev_remove,
+ .remove_new = pxa2xx_ac97_dev_remove,
.driver = {
.name = "pxa2xx-ac97",
#ifdef CONFIG_PM_SLEEP
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 119/173] ASoC: rockchip: rockchip_i2s: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (27 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 117/173] ASoC: pxa: pxa2xx-ac97: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: " Uwe Kleine-König
` (16 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner
Cc: alsa-devel, linux-arm-kernel, linux-rockchip, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/rockchip/rockchip_i2s.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index a8758ad68442..79abec24a5a2 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -850,7 +850,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
return ret;
}
-static int rockchip_i2s_remove(struct platform_device *pdev)
+static void rockchip_i2s_remove(struct platform_device *pdev)
{
struct rk_i2s_dev *i2s = dev_get_drvdata(&pdev->dev);
@@ -859,8 +859,6 @@ static int rockchip_i2s_remove(struct platform_device *pdev)
i2s_runtime_suspend(&pdev->dev);
clk_disable_unprepare(i2s->hclk);
-
- return 0;
}
static const struct dev_pm_ops rockchip_i2s_pm_ops = {
@@ -870,7 +868,7 @@ static const struct dev_pm_ops rockchip_i2s_pm_ops = {
static struct platform_driver rockchip_i2s_driver = {
.probe = rockchip_i2s_probe,
- .remove = rockchip_i2s_remove,
+ .remove_new = rockchip_i2s_remove,
.driver = {
.name = DRV_NAME,
.of_match_table = of_match_ptr(rockchip_i2s_match),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (28 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 119/173] ASoC: rockchip: rockchip_i2s: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 16:00 ` Nicolas Frattaroli
2023-03-15 15:06 ` [PATCH 121/173] ASoC: rockchip: rockchip_pdm: " Uwe Kleine-König
` (15 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Nicolas Frattaroli, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Heiko Stuebner
Cc: linux-rockchip, alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/rockchip/rockchip_i2s_tdm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c
index 166257c6ae14..c2e9fd5ab05e 100644
--- a/sound/soc/rockchip/rockchip_i2s_tdm.c
+++ b/sound/soc/rockchip/rockchip_i2s_tdm.c
@@ -1722,14 +1722,12 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
return ret;
}
-static int rockchip_i2s_tdm_remove(struct platform_device *pdev)
+static void rockchip_i2s_tdm_remove(struct platform_device *pdev)
{
if (!pm_runtime_status_suspended(&pdev->dev))
i2s_tdm_runtime_suspend(&pdev->dev);
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
static int __maybe_unused rockchip_i2s_tdm_suspend(struct device *dev)
@@ -1764,7 +1762,7 @@ static const struct dev_pm_ops rockchip_i2s_tdm_pm_ops = {
static struct platform_driver rockchip_i2s_tdm_driver = {
.probe = rockchip_i2s_tdm_probe,
- .remove = rockchip_i2s_tdm_remove,
+ .remove_new = rockchip_i2s_tdm_remove,
.driver = {
.name = DRV_NAME,
.of_match_table = of_match_ptr(rockchip_i2s_tdm_match),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 121/173] ASoC: rockchip: rockchip_pdm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (29 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 122/173] ASoC: rockchip: rockchip_rt5645: " Uwe Kleine-König
` (14 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner
Cc: alsa-devel, linux-arm-kernel, linux-rockchip, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/rockchip/rockchip_pdm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c
index 6ce92b1db790..52f9aae60be8 100644
--- a/sound/soc/rockchip/rockchip_pdm.c
+++ b/sound/soc/rockchip/rockchip_pdm.c
@@ -661,7 +661,7 @@ static int rockchip_pdm_probe(struct platform_device *pdev)
return ret;
}
-static int rockchip_pdm_remove(struct platform_device *pdev)
+static void rockchip_pdm_remove(struct platform_device *pdev)
{
struct rk_pdm_dev *pdm = dev_get_drvdata(&pdev->dev);
@@ -671,8 +671,6 @@ static int rockchip_pdm_remove(struct platform_device *pdev)
clk_disable_unprepare(pdm->clk);
clk_disable_unprepare(pdm->hclk);
-
- return 0;
}
#ifdef CONFIG_PM_SLEEP
@@ -710,7 +708,7 @@ static const struct dev_pm_ops rockchip_pdm_pm_ops = {
static struct platform_driver rockchip_pdm_driver = {
.probe = rockchip_pdm_probe,
- .remove = rockchip_pdm_remove,
+ .remove_new = rockchip_pdm_remove,
.driver = {
.name = "rockchip-pdm",
.of_match_table = of_match_ptr(rockchip_pdm_match),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 122/173] ASoC: rockchip: rockchip_rt5645: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (30 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 121/173] ASoC: rockchip: rockchip_pdm: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 123/173] ASoC: rockchip: rockchip_spdif: " Uwe Kleine-König
` (13 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner
Cc: alsa-devel, linux-arm-kernel, linux-rockchip, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/rockchip/rockchip_rt5645.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c
index d07cc5c813f2..e73a342b7953 100644
--- a/sound/soc/rockchip/rockchip_rt5645.c
+++ b/sound/soc/rockchip/rockchip_rt5645.c
@@ -206,14 +206,12 @@ static int snd_rk_mc_probe(struct platform_device *pdev)
return ret;
}
-static int snd_rk_mc_remove(struct platform_device *pdev)
+static void snd_rk_mc_remove(struct platform_device *pdev)
{
of_node_put(rk_dailink.cpus->of_node);
rk_dailink.cpus->of_node = NULL;
of_node_put(rk_dailink.codecs->of_node);
rk_dailink.codecs->of_node = NULL;
-
- return 0;
}
static const struct of_device_id rockchip_rt5645_of_match[] = {
@@ -225,7 +223,7 @@ MODULE_DEVICE_TABLE(of, rockchip_rt5645_of_match);
static struct platform_driver snd_rk_mc_driver = {
.probe = snd_rk_mc_probe,
- .remove = snd_rk_mc_remove,
+ .remove_new = snd_rk_mc_remove,
.driver = {
.name = DRV_NAME,
.pm = &snd_soc_pm_ops,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 123/173] ASoC: rockchip: rockchip_spdif: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (31 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 122/173] ASoC: rockchip: rockchip_rt5645: " Uwe Kleine-König
@ 2023-03-15 15:06 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 136/173] ASoC: stm: stm32_adfsdm: " Uwe Kleine-König
` (12 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:06 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner
Cc: alsa-devel, linux-arm-kernel, linux-rockchip, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/rockchip/rockchip_spdif.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c
index 2d937fcf357d..0b73fe94e4bb 100644
--- a/sound/soc/rockchip/rockchip_spdif.c
+++ b/sound/soc/rockchip/rockchip_spdif.c
@@ -367,13 +367,11 @@ static int rk_spdif_probe(struct platform_device *pdev)
return ret;
}
-static int rk_spdif_remove(struct platform_device *pdev)
+static void rk_spdif_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
rk_spdif_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct dev_pm_ops rk_spdif_pm_ops = {
@@ -383,7 +381,7 @@ static const struct dev_pm_ops rk_spdif_pm_ops = {
static struct platform_driver rk_spdif_driver = {
.probe = rk_spdif_probe,
- .remove = rk_spdif_remove,
+ .remove_new = rk_spdif_remove,
.driver = {
.name = "rockchip-spdif",
.of_match_table = of_match_ptr(rk_spdif_match),
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 136/173] ASoC: stm: stm32_adfsdm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (32 preceding siblings ...)
2023-03-15 15:06 ` [PATCH 123/173] ASoC: rockchip: rockchip_spdif: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 137/173] ASoC: stm: stm32_i2s: " Uwe Kleine-König
` (11 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Olivier Moysan, Arnaud Pouliquen, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Maxime Coquelin, Alexandre Torgue
Cc: alsa-devel, linux-stm32, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/stm/stm32_adfsdm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c
index 837c1848d9bf..a8fff7378641 100644
--- a/sound/soc/stm/stm32_adfsdm.c
+++ b/sound/soc/stm/stm32_adfsdm.c
@@ -386,12 +386,10 @@ static int stm32_adfsdm_probe(struct platform_device *pdev)
return ret;
}
-static int stm32_adfsdm_remove(struct platform_device *pdev)
+static void stm32_adfsdm_remove(struct platform_device *pdev)
{
snd_soc_unregister_component(&pdev->dev);
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
static struct platform_driver stm32_adfsdm_driver = {
@@ -400,7 +398,7 @@ static struct platform_driver stm32_adfsdm_driver = {
.of_match_table = stm32_adfsdm_of_match,
},
.probe = stm32_adfsdm_probe,
- .remove = stm32_adfsdm_remove,
+ .remove_new = stm32_adfsdm_remove,
};
module_platform_driver(stm32_adfsdm_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 137/173] ASoC: stm: stm32_i2s: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (33 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 136/173] ASoC: stm: stm32_adfsdm: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 138/173] ASoC: stm: stm32_sai_sub: " Uwe Kleine-König
` (10 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Olivier Moysan, Arnaud Pouliquen, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Maxime Coquelin, Alexandre Torgue
Cc: alsa-devel, linux-stm32, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/stm/stm32_i2s.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c
index f3dd9f8e621c..f7e381187216 100644
--- a/sound/soc/stm/stm32_i2s.c
+++ b/sound/soc/stm/stm32_i2s.c
@@ -1097,13 +1097,11 @@ static int stm32_i2s_parse_dt(struct platform_device *pdev,
return 0;
}
-static int stm32_i2s_remove(struct platform_device *pdev)
+static void stm32_i2s_remove(struct platform_device *pdev)
{
snd_dmaengine_pcm_unregister(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
static int stm32_i2s_probe(struct platform_device *pdev)
@@ -1221,7 +1219,7 @@ static struct platform_driver stm32_i2s_driver = {
.pm = &stm32_i2s_pm_ops,
},
.probe = stm32_i2s_probe,
- .remove = stm32_i2s_remove,
+ .remove_new = stm32_i2s_remove,
};
module_platform_driver(stm32_i2s_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 138/173] ASoC: stm: stm32_sai_sub: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (34 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 137/173] ASoC: stm: stm32_i2s: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 139/173] ASoC: stm: stm32_spdifrx: " Uwe Kleine-König
` (9 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Olivier Moysan, Arnaud Pouliquen, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Maxime Coquelin, Alexandre Torgue
Cc: alsa-devel, linux-stm32, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/stm/stm32_sai_sub.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c
index eb31b49e6597..38e65e1f9496 100644
--- a/sound/soc/stm/stm32_sai_sub.c
+++ b/sound/soc/stm/stm32_sai_sub.c
@@ -1559,7 +1559,7 @@ static int stm32_sai_sub_probe(struct platform_device *pdev)
return 0;
}
-static int stm32_sai_sub_remove(struct platform_device *pdev)
+static void stm32_sai_sub_remove(struct platform_device *pdev)
{
struct stm32_sai_sub_data *sai = dev_get_drvdata(&pdev->dev);
@@ -1567,8 +1567,6 @@ static int stm32_sai_sub_remove(struct platform_device *pdev)
snd_dmaengine_pcm_unregister(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
#ifdef CONFIG_PM_SLEEP
@@ -1618,7 +1616,7 @@ static struct platform_driver stm32_sai_sub_driver = {
.pm = &stm32_sai_sub_pm_ops,
},
.probe = stm32_sai_sub_probe,
- .remove = stm32_sai_sub_remove,
+ .remove_new = stm32_sai_sub_remove,
};
module_platform_driver(stm32_sai_sub_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 139/173] ASoC: stm: stm32_spdifrx: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (35 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 138/173] ASoC: stm: stm32_sai_sub: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 140/173] ASoC: sunxi: sun4i-codec: " Uwe Kleine-König
` (8 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Olivier Moysan, Arnaud Pouliquen, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Maxime Coquelin, Alexandre Torgue
Cc: alsa-devel, linux-stm32, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/stm/stm32_spdifrx.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c
index d399c906bb92..a4066f271f2d 100644
--- a/sound/soc/stm/stm32_spdifrx.c
+++ b/sound/soc/stm/stm32_spdifrx.c
@@ -939,7 +939,7 @@ static int stm32_spdifrx_parse_of(struct platform_device *pdev,
return 0;
}
-static int stm32_spdifrx_remove(struct platform_device *pdev)
+static void stm32_spdifrx_remove(struct platform_device *pdev)
{
struct stm32_spdifrx_data *spdifrx = platform_get_drvdata(pdev);
@@ -952,8 +952,6 @@ static int stm32_spdifrx_remove(struct platform_device *pdev)
snd_dmaengine_pcm_unregister(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
static int stm32_spdifrx_probe(struct platform_device *pdev)
@@ -1078,7 +1076,7 @@ static struct platform_driver stm32_spdifrx_driver = {
.pm = &stm32_spdifrx_pm_ops,
},
.probe = stm32_spdifrx_probe,
- .remove = stm32_spdifrx_remove,
+ .remove_new = stm32_spdifrx_remove,
};
module_platform_driver(stm32_spdifrx_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 140/173] ASoC: sunxi: sun4i-codec: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (36 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 139/173] ASoC: stm: stm32_spdifrx: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 16:04 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 141/173] ASoC: sunxi: sun4i-i2s: " Uwe Kleine-König
` (7 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Charles Keepax,
Mikhail Rudenko, Li Chen
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/sunxi/sun4i-codec.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c
index 835dc3404367..55328850aef5 100644
--- a/sound/soc/sunxi/sun4i-codec.c
+++ b/sound/soc/sunxi/sun4i-codec.c
@@ -1821,7 +1821,7 @@ static int sun4i_codec_probe(struct platform_device *pdev)
return ret;
}
-static int sun4i_codec_remove(struct platform_device *pdev)
+static void sun4i_codec_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct sun4i_codec *scodec = snd_soc_card_get_drvdata(card);
@@ -1830,8 +1830,6 @@ static int sun4i_codec_remove(struct platform_device *pdev)
if (scodec->rst)
reset_control_assert(scodec->rst);
clk_disable_unprepare(scodec->clk_apb);
-
- return 0;
}
static struct platform_driver sun4i_codec_driver = {
@@ -1840,7 +1838,7 @@ static struct platform_driver sun4i_codec_driver = {
.of_match_table = sun4i_codec_of_match,
},
.probe = sun4i_codec_probe,
- .remove = sun4i_codec_remove,
+ .remove_new = sun4i_codec_remove,
};
module_platform_driver(sun4i_codec_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 141/173] ASoC: sunxi: sun4i-i2s: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (37 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 140/173] ASoC: sunxi: sun4i-codec: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 16:04 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 142/173] ASoC: sunxi: sun4i-spdif: " Uwe Kleine-König
` (6 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Charles Keepax,
Kai Vehmanen, Ranjani Sridharan, Bard Liao, Pierre-Louis Bossart
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/sunxi/sun4i-i2s.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c
index 6028871825ba..669d712bbe9f 100644
--- a/sound/soc/sunxi/sun4i-i2s.c
+++ b/sound/soc/sunxi/sun4i-i2s.c
@@ -1606,7 +1606,7 @@ static int sun4i_i2s_probe(struct platform_device *pdev)
return ret;
}
-static int sun4i_i2s_remove(struct platform_device *pdev)
+static void sun4i_i2s_remove(struct platform_device *pdev)
{
struct sun4i_i2s *i2s = dev_get_drvdata(&pdev->dev);
@@ -1616,8 +1616,6 @@ static int sun4i_i2s_remove(struct platform_device *pdev)
if (!IS_ERR(i2s->rst))
reset_control_assert(i2s->rst);
-
- return 0;
}
static const struct of_device_id sun4i_i2s_match[] = {
@@ -1660,7 +1658,7 @@ static const struct dev_pm_ops sun4i_i2s_pm_ops = {
static struct platform_driver sun4i_i2s_driver = {
.probe = sun4i_i2s_probe,
- .remove = sun4i_i2s_remove,
+ .remove_new = sun4i_i2s_remove,
.driver = {
.name = "sun4i-i2s",
.of_match_table = sun4i_i2s_match,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 142/173] ASoC: sunxi: sun4i-spdif: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (38 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 141/173] ASoC: sunxi: sun4i-i2s: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 143/173] ASoC: sunxi: sun50i-dmic: " Uwe Kleine-König
` (5 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Charles Keepax
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/sunxi/sun4i-spdif.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c
index bcceebca915a..ff18d4113aac 100644
--- a/sound/soc/sunxi/sun4i-spdif.c
+++ b/sound/soc/sunxi/sun4i-spdif.c
@@ -703,13 +703,11 @@ static int sun4i_spdif_probe(struct platform_device *pdev)
return ret;
}
-static int sun4i_spdif_remove(struct platform_device *pdev)
+static void sun4i_spdif_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
sun4i_spdif_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct dev_pm_ops sun4i_spdif_pm = {
@@ -724,7 +722,7 @@ static struct platform_driver sun4i_spdif_driver = {
.pm = &sun4i_spdif_pm,
},
.probe = sun4i_spdif_probe,
- .remove = sun4i_spdif_remove,
+ .remove_new = sun4i_spdif_remove,
};
module_platform_driver(sun4i_spdif_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 143/173] ASoC: sunxi: sun50i-dmic: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (39 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 142/173] ASoC: sunxi: sun4i-spdif: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 144/173] ASoC: sunxi: sun8i-codec: " Uwe Kleine-König
` (4 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Ban Tao, Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/sunxi/sun50i-dmic.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 069c993acb31..c10439b9e0a2 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -373,13 +373,11 @@ static int sun50i_dmic_probe(struct platform_device *pdev)
return ret;
}
-static int sun50i_dmic_remove(struct platform_device *pdev)
+static void sun50i_dmic_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
sun50i_dmic_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct dev_pm_ops sun50i_dmic_pm = {
@@ -394,7 +392,7 @@ static struct platform_driver sun50i_dmic_driver = {
.pm = &sun50i_dmic_pm,
},
.probe = sun50i_dmic_probe,
- .remove = sun50i_dmic_remove,
+ .remove_new = sun50i_dmic_remove,
};
module_platform_driver(sun50i_dmic_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 144/173] ASoC: sunxi: sun8i-codec: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (40 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 143/173] ASoC: sunxi: sun50i-dmic: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 166/173] ASoC: uniphier: evea: " Uwe Kleine-König
` (3 subsequent siblings)
45 siblings, 1 reply; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Charles Keepax
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/sunxi/sun8i-codec.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c
index 9844978d91e6..4c0d0d7d3e58 100644
--- a/sound/soc/sunxi/sun8i-codec.c
+++ b/sound/soc/sunxi/sun8i-codec.c
@@ -1349,13 +1349,11 @@ static int sun8i_codec_probe(struct platform_device *pdev)
return ret;
}
-static int sun8i_codec_remove(struct platform_device *pdev)
+static void sun8i_codec_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
sun8i_codec_runtime_suspend(&pdev->dev);
-
- return 0;
}
static const struct sun8i_codec_quirks sun8i_a33_quirks = {
@@ -1385,7 +1383,7 @@ static struct platform_driver sun8i_codec_driver = {
.pm = &sun8i_codec_pm_ops,
},
.probe = sun8i_codec_probe,
- .remove = sun8i_codec_remove,
+ .remove_new = sun8i_codec_remove,
};
module_platform_driver(sun8i_codec_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 166/173] ASoC: uniphier: evea: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (41 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 144/173] ASoC: sunxi: sun8i-codec: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 169/173] ASoC: xilinx: xlnx_formatter_pcm: " Uwe Kleine-König
` (2 subsequent siblings)
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Kunihiko Hayashi, Masami Hiramatsu, Charles Keepax
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/uniphier/evea.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.c
index 42403ae8e31b..d90b3e4b0104 100644
--- a/sound/soc/uniphier/evea.c
+++ b/sound/soc/uniphier/evea.c
@@ -536,7 +536,7 @@ static int evea_probe(struct platform_device *pdev)
return ret;
}
-static int evea_remove(struct platform_device *pdev)
+static void evea_remove(struct platform_device *pdev)
{
struct evea_priv *evea = platform_get_drvdata(pdev);
@@ -546,8 +546,6 @@ static int evea_remove(struct platform_device *pdev)
clk_disable_unprepare(evea->clk_exiv);
clk_disable_unprepare(evea->clk);
-
- return 0;
}
static const struct of_device_id evea_of_match[] __maybe_unused = {
@@ -562,7 +560,7 @@ static struct platform_driver evea_codec_driver = {
.of_match_table = of_match_ptr(evea_of_match),
},
.probe = evea_probe,
- .remove = evea_remove,
+ .remove_new = evea_remove,
};
module_platform_driver(evea_codec_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 169/173] ASoC: xilinx: xlnx_formatter_pcm: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (42 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 166/173] ASoC: uniphier: evea: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 170/173] ASoC: xilinx: xlnx_spdif: " Uwe Kleine-König
2023-03-15 15:49 ` [PATCH 000/173] ALSA/ASoC: " Nicolas Ferre
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Michal Simek, Charles Keepax
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/xilinx/xlnx_formatter_pcm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/xilinx/xlnx_formatter_pcm.c b/sound/soc/xilinx/xlnx_formatter_pcm.c
index ff1fe62fea70..299cfb5e2022 100644
--- a/sound/soc/xilinx/xlnx_formatter_pcm.c
+++ b/sound/soc/xilinx/xlnx_formatter_pcm.c
@@ -687,7 +687,7 @@ static int xlnx_formatter_pcm_probe(struct platform_device *pdev)
return ret;
}
-static int xlnx_formatter_pcm_remove(struct platform_device *pdev)
+static void xlnx_formatter_pcm_remove(struct platform_device *pdev)
{
int ret = 0;
struct xlnx_pcm_drv_data *adata = dev_get_drvdata(&pdev->dev);
@@ -703,7 +703,6 @@ static int xlnx_formatter_pcm_remove(struct platform_device *pdev)
dev_err(&pdev->dev, "audio formatter reset failed\n");
clk_disable_unprepare(adata->axi_clk);
- return 0;
}
static const struct of_device_id xlnx_formatter_pcm_of_match[] = {
@@ -714,7 +713,7 @@ MODULE_DEVICE_TABLE(of, xlnx_formatter_pcm_of_match);
static struct platform_driver xlnx_formatter_pcm_driver = {
.probe = xlnx_formatter_pcm_probe,
- .remove = xlnx_formatter_pcm_remove,
+ .remove_new = xlnx_formatter_pcm_remove,
.driver = {
.name = DRV_NAME,
.of_match_table = xlnx_formatter_pcm_of_match,
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* [PATCH 170/173] ASoC: xilinx: xlnx_spdif: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (43 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 169/173] ASoC: xilinx: xlnx_formatter_pcm: " Uwe Kleine-König
@ 2023-03-15 15:07 ` Uwe Kleine-König
2023-03-15 15:49 ` [PATCH 000/173] ALSA/ASoC: " Nicolas Ferre
45 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 15:07 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Michal Simek, Charles Keepax
Cc: alsa-devel, linux-arm-kernel, kernel
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
sound/soc/xilinx/xlnx_spdif.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/xilinx/xlnx_spdif.c b/sound/soc/xilinx/xlnx_spdif.c
index 7342048e9875..d52d5fc7b5b8 100644
--- a/sound/soc/xilinx/xlnx_spdif.c
+++ b/sound/soc/xilinx/xlnx_spdif.c
@@ -312,12 +312,11 @@ static int xlnx_spdif_probe(struct platform_device *pdev)
return ret;
}
-static int xlnx_spdif_remove(struct platform_device *pdev)
+static void xlnx_spdif_remove(struct platform_device *pdev)
{
struct spdif_dev_data *ctx = dev_get_drvdata(&pdev->dev);
clk_disable_unprepare(ctx->axi_clk);
- return 0;
}
static struct platform_driver xlnx_spdif_driver = {
@@ -326,7 +325,7 @@ static struct platform_driver xlnx_spdif_driver = {
.of_match_table = xlnx_spdif_of_match,
},
.probe = xlnx_spdif_probe,
- .remove = xlnx_spdif_remove,
+ .remove_new = xlnx_spdif_remove,
};
module_platform_driver(xlnx_spdif_driver);
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 75+ messages in thread
* Re: [PATCH 033/173] ASoC: atmel: tse850-pcm5142: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 033/173] ASoC: atmel: tse850-pcm5142: " Uwe Kleine-König
@ 2023-03-15 15:42 ` Peter Rosin
2023-03-16 11:11 ` Claudiu.Beznea
1 sibling, 0 replies; 75+ messages in thread
From: Peter Rosin @ 2023-03-15 15:42 UTC (permalink / raw)
To: Uwe Kleine-König, Codrin Ciubotariu, Liam Girdwood,
Mark Brown, Jaroslav Kysela, Takashi Iwai, Nicolas Ferre,
Alexandre Belloni, Claudiu Beznea
Cc: alsa-devel, linux-arm-kernel, kernel
2023-03-15 at 16:05, Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Peter Rosin <peda@axentia.se>
Cheers,
Peter
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 000/173] ALSA/ASoC: Convert to platform remove callback returning void
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
` (44 preceding siblings ...)
2023-03-15 15:07 ` [PATCH 170/173] ASoC: xilinx: xlnx_spdif: " Uwe Kleine-König
@ 2023-03-15 15:49 ` Nicolas Ferre
45 siblings, 0 replies; 75+ messages in thread
From: Nicolas Ferre @ 2023-03-15 15:49 UTC (permalink / raw)
To: Uwe Kleine-König, Jaroslav Kysela, Takashi Iwai,
Liam Girdwood, Mark Brown, V sujith kumar Reddy, Daniel Mack,
Haojian Zhuang, Robert Jarzmik, Alexandre Belloni, Claudiu Beznea,
Thierry Reding
Cc: alsa-devel, kernel, linux-arm-kernel
(with reduced sending list)
On 15/03/2023 at 16:04, Uwe Kleine-König wrote:
> Hello,
>
> this series adapts the platform drivers below sound/ to use the .remove_new()
> callback. Compared to the traditional .remove() callback .remove_new() returns
> no value. This is a good thing because the driver core doesn't (and cannot)
> cope for errors during remove. The only effect of a non-zero return value in
> .remove() is that the driver core emits a warning. The device is removed anyhow
> and an early return from .remove() usually yields a resource leak.
>
> By changing the remove callback to return void driver authors cannot
> reasonably assume any more that there is some kind of cleanup later.
>
> The first two patches simplify a driver each to return zero unconditionally,
> and then all drivers are trivially converted to .remove_new().
>
> There are nearly no interdependencies in this patch set---only 1 <- 11 and
> 2 <- 16. So even if some individual problems are found (I don't expect that),
> the other patches can (and from my POV should) still be applied.
>
> Best regards
> Uwe
>
> Uwe Kleine-König (173):
[..]
> ALSA: atmel: ac97: Convert to platform remove callback returning void
[..]
> ASoC: atmel: atmel-i2s: Convert to platform remove callback returning
> void
> ASoC: atmel: atmel_wm8904: Convert to platform remove callback
> returning void
> ASoC: atmel: mchp-i2s-mcc: Convert to platform remove callback
> returning void
> ASoC: atmel: mchp-pdmc: Convert to platform remove callback returning
> void
> ASoC: atmel: mchp-spdifrx: Convert to platform remove callback
> returning void
> ASoC: atmel: mchp-spdiftx: Convert to platform remove callback
> returning void
> ASoC: atmel: mikroe-proto: Convert to platform remove callback
> returning void
> ASoC: atmel: sam9g20_wm8731: Convert to platform remove callback
> returning void
> ASoC: atmel: sam9x5_wm8731: Convert to platform remove callback
> returning void
> ASoC: atmel: tse850-pcm5142: Convert to platform remove callback
> returning void
For all "atmel" related changes:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Thanks Uwe!
[..]
> 171 files changed, 345 insertions(+), 654 deletions(-)
>
> base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
> --
> 2.39.2
>
Regards,
--
Nicolas Ferre
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: " Uwe Kleine-König
@ 2023-03-15 16:00 ` Nicolas Frattaroli
2023-03-15 16:25 ` Uwe Kleine-König
0 siblings, 1 reply; 75+ messages in thread
From: Nicolas Frattaroli @ 2023-03-15 16:00 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner, Uwe Kleine-König
Cc: linux-rockchip, alsa-devel, linux-arm-kernel, kernel
On Mittwoch, 15. März 2023 16:06:52 CET Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Hello,
this looks fine, but the commit prefix should either be
"ASoC: rockchip: i2s_tdm:" or "ASoC: rockchip: i2s-tdm" to align
with previous commits. We've already broken convention once before,
hence the two names, and I'd rather not have this convention broken
again.
Kind regards,
Nicolas Frattaroli
> ---
> sound/soc/rockchip/rockchip_i2s_tdm.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c
> index 166257c6ae14..c2e9fd5ab05e 100644
> --- a/sound/soc/rockchip/rockchip_i2s_tdm.c
> +++ b/sound/soc/rockchip/rockchip_i2s_tdm.c
> @@ -1722,14 +1722,12 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int rockchip_i2s_tdm_remove(struct platform_device *pdev)
> +static void rockchip_i2s_tdm_remove(struct platform_device *pdev)
> {
> if (!pm_runtime_status_suspended(&pdev->dev))
> i2s_tdm_runtime_suspend(&pdev->dev);
>
> pm_runtime_disable(&pdev->dev);
> -
> - return 0;
> }
>
> static int __maybe_unused rockchip_i2s_tdm_suspend(struct device *dev)
> @@ -1764,7 +1762,7 @@ static const struct dev_pm_ops rockchip_i2s_tdm_pm_ops = {
>
> static struct platform_driver rockchip_i2s_tdm_driver = {
> .probe = rockchip_i2s_tdm_probe,
> - .remove = rockchip_i2s_tdm_remove,
> + .remove_new = rockchip_i2s_tdm_remove,
> .driver = {
> .name = DRV_NAME,
> .of_match_table = of_match_ptr(rockchip_i2s_tdm_match),
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 140/173] ASoC: sunxi: sun4i-codec: Convert to platform remove callback returning void
2023-03-15 15:07 ` [PATCH 140/173] ASoC: sunxi: sun4i-codec: " Uwe Kleine-König
@ 2023-03-15 16:04 ` Jernej Škrabec
0 siblings, 0 replies; 75+ messages in thread
From: Jernej Škrabec @ 2023-03-15 16:04 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Samuel Holland, Charles Keepax, Mikhail Rudenko,
Li Chen, Uwe Kleine-König
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
Dne sreda, 15. marec 2023 ob 16:07:12 CET je Uwe Kleine-König napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> sound/soc/sunxi/sun4i-codec.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c
> index 835dc3404367..55328850aef5 100644
> --- a/sound/soc/sunxi/sun4i-codec.c
> +++ b/sound/soc/sunxi/sun4i-codec.c
> @@ -1821,7 +1821,7 @@ static int sun4i_codec_probe(struct platform_device
> *pdev) return ret;
> }
>
> -static int sun4i_codec_remove(struct platform_device *pdev)
> +static void sun4i_codec_remove(struct platform_device *pdev)
> {
> struct snd_soc_card *card = platform_get_drvdata(pdev);
> struct sun4i_codec *scodec = snd_soc_card_get_drvdata(card);
> @@ -1830,8 +1830,6 @@ static int sun4i_codec_remove(struct platform_device
> *pdev) if (scodec->rst)
> reset_control_assert(scodec->rst);
> clk_disable_unprepare(scodec->clk_apb);
> -
> - return 0;
> }
>
> static struct platform_driver sun4i_codec_driver = {
> @@ -1840,7 +1838,7 @@ static struct platform_driver sun4i_codec_driver = {
> .of_match_table = sun4i_codec_of_match,
> },
> .probe = sun4i_codec_probe,
> - .remove = sun4i_codec_remove,
> + .remove_new = sun4i_codec_remove,
> };
> module_platform_driver(sun4i_codec_driver);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 141/173] ASoC: sunxi: sun4i-i2s: Convert to platform remove callback returning void
2023-03-15 15:07 ` [PATCH 141/173] ASoC: sunxi: sun4i-i2s: " Uwe Kleine-König
@ 2023-03-15 16:04 ` Jernej Škrabec
0 siblings, 0 replies; 75+ messages in thread
From: Jernej Škrabec @ 2023-03-15 16:04 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Samuel Holland, Charles Keepax, Kai Vehmanen,
Ranjani Sridharan, Bard Liao, Pierre-Louis Bossart,
Uwe Kleine-König
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
Dne sreda, 15. marec 2023 ob 16:07:13 CET je Uwe Kleine-König napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> sound/soc/sunxi/sun4i-i2s.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c
> index 6028871825ba..669d712bbe9f 100644
> --- a/sound/soc/sunxi/sun4i-i2s.c
> +++ b/sound/soc/sunxi/sun4i-i2s.c
> @@ -1606,7 +1606,7 @@ static int sun4i_i2s_probe(struct platform_device
> *pdev) return ret;
> }
>
> -static int sun4i_i2s_remove(struct platform_device *pdev)
> +static void sun4i_i2s_remove(struct platform_device *pdev)
> {
> struct sun4i_i2s *i2s = dev_get_drvdata(&pdev->dev);
>
> @@ -1616,8 +1616,6 @@ static int sun4i_i2s_remove(struct platform_device
> *pdev)
>
> if (!IS_ERR(i2s->rst))
> reset_control_assert(i2s->rst);
> -
> - return 0;
> }
>
> static const struct of_device_id sun4i_i2s_match[] = {
> @@ -1660,7 +1658,7 @@ static const struct dev_pm_ops sun4i_i2s_pm_ops = {
>
> static struct platform_driver sun4i_i2s_driver = {
> .probe = sun4i_i2s_probe,
> - .remove = sun4i_i2s_remove,
> + .remove_new = sun4i_i2s_remove,
> .driver = {
> .name = "sun4i-i2s",
> .of_match_table = sun4i_i2s_match,
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 142/173] ASoC: sunxi: sun4i-spdif: Convert to platform remove callback returning void
2023-03-15 15:07 ` [PATCH 142/173] ASoC: sunxi: sun4i-spdif: " Uwe Kleine-König
@ 2023-03-15 16:05 ` Jernej Škrabec
0 siblings, 0 replies; 75+ messages in thread
From: Jernej Škrabec @ 2023-03-15 16:05 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Samuel Holland, Charles Keepax,
Uwe Kleine-König
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
Dne sreda, 15. marec 2023 ob 16:07:14 CET je Uwe Kleine-König napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> sound/soc/sunxi/sun4i-spdif.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c
> index bcceebca915a..ff18d4113aac 100644
> --- a/sound/soc/sunxi/sun4i-spdif.c
> +++ b/sound/soc/sunxi/sun4i-spdif.c
> @@ -703,13 +703,11 @@ static int sun4i_spdif_probe(struct platform_device
> *pdev) return ret;
> }
>
> -static int sun4i_spdif_remove(struct platform_device *pdev)
> +static void sun4i_spdif_remove(struct platform_device *pdev)
> {
> pm_runtime_disable(&pdev->dev);
> if (!pm_runtime_status_suspended(&pdev->dev))
> sun4i_spdif_runtime_suspend(&pdev->dev);
> -
> - return 0;
> }
>
> static const struct dev_pm_ops sun4i_spdif_pm = {
> @@ -724,7 +722,7 @@ static struct platform_driver sun4i_spdif_driver = {
> .pm = &sun4i_spdif_pm,
> },
> .probe = sun4i_spdif_probe,
> - .remove = sun4i_spdif_remove,
> + .remove_new = sun4i_spdif_remove,
> };
>
> module_platform_driver(sun4i_spdif_driver);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 143/173] ASoC: sunxi: sun50i-dmic: Convert to platform remove callback returning void
2023-03-15 15:07 ` [PATCH 143/173] ASoC: sunxi: sun50i-dmic: " Uwe Kleine-König
@ 2023-03-15 16:05 ` Jernej Škrabec
0 siblings, 0 replies; 75+ messages in thread
From: Jernej Škrabec @ 2023-03-15 16:05 UTC (permalink / raw)
To: Ban Tao, Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Samuel Holland, Uwe Kleine-König
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
Dne sreda, 15. marec 2023 ob 16:07:15 CET je Uwe Kleine-König napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> sound/soc/sunxi/sun50i-dmic.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
> index 069c993acb31..c10439b9e0a2 100644
> --- a/sound/soc/sunxi/sun50i-dmic.c
> +++ b/sound/soc/sunxi/sun50i-dmic.c
> @@ -373,13 +373,11 @@ static int sun50i_dmic_probe(struct platform_device
> *pdev) return ret;
> }
>
> -static int sun50i_dmic_remove(struct platform_device *pdev)
> +static void sun50i_dmic_remove(struct platform_device *pdev)
> {
> pm_runtime_disable(&pdev->dev);
> if (!pm_runtime_status_suspended(&pdev->dev))
> sun50i_dmic_runtime_suspend(&pdev->dev);
> -
> - return 0;
> }
>
> static const struct dev_pm_ops sun50i_dmic_pm = {
> @@ -394,7 +392,7 @@ static struct platform_driver sun50i_dmic_driver = {
> .pm = &sun50i_dmic_pm,
> },
> .probe = sun50i_dmic_probe,
> - .remove = sun50i_dmic_remove,
> + .remove_new = sun50i_dmic_remove,
> };
>
> module_platform_driver(sun50i_dmic_driver);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 144/173] ASoC: sunxi: sun8i-codec: Convert to platform remove callback returning void
2023-03-15 15:07 ` [PATCH 144/173] ASoC: sunxi: sun8i-codec: " Uwe Kleine-König
@ 2023-03-15 16:05 ` Jernej Škrabec
0 siblings, 0 replies; 75+ messages in thread
From: Jernej Škrabec @ 2023-03-15 16:05 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Chen-Yu Tsai, Samuel Holland, Charles Keepax,
Uwe Kleine-König
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, kernel
Dne sreda, 15. marec 2023 ob 16:07:16 CET je Uwe Kleine-König napisal(a):
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> sound/soc/sunxi/sun8i-codec.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c
> index 9844978d91e6..4c0d0d7d3e58 100644
> --- a/sound/soc/sunxi/sun8i-codec.c
> +++ b/sound/soc/sunxi/sun8i-codec.c
> @@ -1349,13 +1349,11 @@ static int sun8i_codec_probe(struct platform_device
> *pdev) return ret;
> }
>
> -static int sun8i_codec_remove(struct platform_device *pdev)
> +static void sun8i_codec_remove(struct platform_device *pdev)
> {
> pm_runtime_disable(&pdev->dev);
> if (!pm_runtime_status_suspended(&pdev->dev))
> sun8i_codec_runtime_suspend(&pdev->dev);
> -
> - return 0;
> }
>
> static const struct sun8i_codec_quirks sun8i_a33_quirks = {
> @@ -1385,7 +1383,7 @@ static struct platform_driver sun8i_codec_driver = {
> .pm = &sun8i_codec_pm_ops,
> },
> .probe = sun8i_codec_probe,
> - .remove = sun8i_codec_remove,
> + .remove_new = sun8i_codec_remove,
> };
> module_platform_driver(sun8i_codec_driver);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: Convert to platform remove callback returning void
2023-03-15 16:00 ` Nicolas Frattaroli
@ 2023-03-15 16:25 ` Uwe Kleine-König
0 siblings, 0 replies; 75+ messages in thread
From: Uwe Kleine-König @ 2023-03-15 16:25 UTC (permalink / raw)
To: Nicolas Frattaroli
Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Heiko Stuebner, linux-rockchip, alsa-devel, kernel,
linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1552 bytes --]
On Wed, Mar 15, 2023 at 05:00:49PM +0100, Nicolas Frattaroli wrote:
> On Mittwoch, 15. März 2023 16:06:52 CET Uwe Kleine-König wrote:
> > The .remove() callback for a platform driver returns an int which makes
> > many driver authors wrongly assume it's possible to do error handling by
> > returning an error code. However the value returned is (mostly) ignored
> > and this typically results in resource leaks. To improve here there is a
> > quest to make the remove callback return void. In the first step of this
> > quest all drivers are converted to .remove_new() which already returns
> > void.
> >
> > Trivially convert this driver from always returning zero in the remove
> > callback to the void returning variant.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>
> Hello,
>
> this looks fine, but the commit prefix should either be
> "ASoC: rockchip: i2s_tdm:" or "ASoC: rockchip: i2s-tdm" to align
> with previous commits. We've already broken convention once before,
> hence the two names, and I'd rather not have this convention broken
> again.
I fixed that in my tree. I assume Mark will skip this patch when
applying and when I come around cleaning up the fall-out I will resend
this one with the subject fixed. (I picked the variant with _ now as
this seems to be the more recent one.)
Thanks for the feedback
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger, Jiasheng Jiang
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger, Ricardo Ribalda, Minghao Chi
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-16 10:12 ` Trevor Wu (吳文良)
1 sibling, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger, Trevor Wu, Dan Carpenter
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: " Uwe Kleine-König
@ 2023-03-16 8:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 75+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-16 8:42 UTC (permalink / raw)
To: Uwe Kleine-König, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Matthias Brugger
Cc: alsa-devel, kernel, linux-arm-kernel, linux-mediatek
Il 15/03/23 16:06, Uwe Kleine-König ha scritto:
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
@ 2023-03-16 10:12 ` Trevor Wu (吳文良)
1 sibling, 0 replies; 75+ messages in thread
From: Trevor Wu (吳文良) @ 2023-03-16 10:12 UTC (permalink / raw)
To: lgirdwood@gmail.com, matthias.bgg@gmail.com, error27@gmail.com,
u.kleine-koenig@pengutronix.de, broonie@kernel.org,
tiwai@suse.com, perex@perex.cz
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
angelogioacchino.delregno@collabora.com,
alsa-devel@alsa-project.org, kernel@pengutronix.de
On Wed, 2023-03-15 at 16:06 +0100, Uwe Kleine-König wrote:
> The .remove() callback for a platform driver returns an int which
> makes
> many driver authors wrongly assume it's possible to do error handling
> by
> returning an error code. However the value returned is (mostly)
> ignored
> and this typically results in resource leaks. To improve here there
> is a
> quest to make the remove callback return void. In the first step of
> this
> quest all drivers are converted to .remove_new() which already
> returns
> void.
>
> Trivially convert this driver from always returning zero in the
> remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
> b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
> index e8e84de86542..e5f9373bed56 100644
> --- a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
> +++ b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
> @@ -3323,11 +3323,9 @@ static int mt8188_afe_pcm_dev_probe(struct
> platform_device *pdev)
> return ret;
> }
>
> -static int mt8188_afe_pcm_dev_remove(struct platform_device *pdev)
> +static void mt8188_afe_pcm_dev_remove(struct platform_device *pdev)
> {
> snd_soc_unregister_component(&pdev->dev);
> -
> - return 0;
> }
>
> static const struct of_device_id mt8188_afe_pcm_dt_match[] = {
> @@ -3348,7 +3346,7 @@ static struct platform_driver
> mt8188_afe_pcm_driver = {
> .pm = &mt8188_afe_pm_ops,
> },
> .probe = mt8188_afe_pcm_dev_probe,
> - .remove = mt8188_afe_pcm_dev_remove,
> + .remove_new = mt8188_afe_pcm_dev_remove,
> };
>
Acked-by: Trevor Wu <trevor.wu@mediatek.com>
> module_platform_driver(mt8188_afe_pcm_driver);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 024/173] ASoC: atmel: atmel-i2s: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 024/173] ASoC: atmel: atmel-i2s: " Uwe Kleine-König
@ 2023-03-16 11:09 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:09 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/atmel-i2s.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c
> index 425d66edbf86..49930baf5e4d 100644
> --- a/sound/soc/atmel/atmel-i2s.c
> +++ b/sound/soc/atmel/atmel-i2s.c
> @@ -717,13 +717,11 @@ static int atmel_i2s_probe(struct platform_device *pdev)
> return 0;
> }
>
> -static int atmel_i2s_remove(struct platform_device *pdev)
> +static void atmel_i2s_remove(struct platform_device *pdev)
> {
> struct atmel_i2s_dev *dev = platform_get_drvdata(pdev);
>
> clk_disable_unprepare(dev->pclk);
> -
> - return 0;
> }
>
> static struct platform_driver atmel_i2s_driver = {
> @@ -732,7 +730,7 @@ static struct platform_driver atmel_i2s_driver = {
> .of_match_table = of_match_ptr(atmel_i2s_dt_ids),
> },
> .probe = atmel_i2s_probe,
> - .remove = atmel_i2s_remove,
> + .remove_new = atmel_i2s_remove,
> };
> module_platform_driver(atmel_i2s_driver);
>
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 025/173] ASoC: atmel: atmel_wm8904: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 025/173] ASoC: atmel: atmel_wm8904: " Uwe Kleine-König
@ 2023-03-16 11:09 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:09 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/atmel_wm8904.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel/atmel_wm8904.c
> index 9c974c4e187d..00e98136bec2 100644
> --- a/sound/soc/atmel/atmel_wm8904.c
> +++ b/sound/soc/atmel/atmel_wm8904.c
> @@ -161,7 +161,7 @@ static int atmel_asoc_wm8904_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
> +static void atmel_asoc_wm8904_remove(struct platform_device *pdev)
> {
> struct snd_soc_card *card = platform_get_drvdata(pdev);
> struct snd_soc_dai_link *dailink = &atmel_asoc_wm8904_dailink;
> @@ -171,8 +171,6 @@ static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
>
> snd_soc_unregister_card(card);
> atmel_ssc_put_audio(id);
> -
> - return 0;
> }
>
> #ifdef CONFIG_OF
> @@ -190,7 +188,7 @@ static struct platform_driver atmel_asoc_wm8904_driver = {
> .pm = &snd_soc_pm_ops,
> },
> .probe = atmel_asoc_wm8904_probe,
> - .remove = atmel_asoc_wm8904_remove,
> + .remove_new = atmel_asoc_wm8904_remove,
> };
>
> module_platform_driver(atmel_asoc_wm8904_driver);
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: " Uwe Kleine-König
@ 2023-03-16 11:09 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:09 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/mchp-i2s-mcc.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c
> index 6dfb96c576ff..7c83d48ca1a0 100644
> --- a/sound/soc/atmel/mchp-i2s-mcc.c
> +++ b/sound/soc/atmel/mchp-i2s-mcc.c
> @@ -1088,13 +1088,11 @@ static int mchp_i2s_mcc_probe(struct platform_device *pdev)
> return 0;
> }
>
> -static int mchp_i2s_mcc_remove(struct platform_device *pdev)
> +static void mchp_i2s_mcc_remove(struct platform_device *pdev)
> {
> struct mchp_i2s_mcc_dev *dev = platform_get_drvdata(pdev);
>
> clk_disable_unprepare(dev->pclk);
> -
> - return 0;
> }
>
> static struct platform_driver mchp_i2s_mcc_driver = {
> @@ -1103,7 +1101,7 @@ static struct platform_driver mchp_i2s_mcc_driver = {
> .of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids),
> },
> .probe = mchp_i2s_mcc_probe,
> - .remove = mchp_i2s_mcc_remove,
> + .remove_new = mchp_i2s_mcc_remove,
> };
> module_platform_driver(mchp_i2s_mcc_driver);
>
> --
> 2.39.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 027/173] ASoC: atmel: mchp-pdmc: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 027/173] ASoC: atmel: mchp-pdmc: " Uwe Kleine-König
@ 2023-03-16 11:09 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:09 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/mchp-pdmc.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c
> index 1aed3baa9369..7fd2c3e100e8 100644
> --- a/sound/soc/atmel/mchp-pdmc.c
> +++ b/sound/soc/atmel/mchp-pdmc.c
> @@ -1134,7 +1134,7 @@ static int mchp_pdmc_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int mchp_pdmc_remove(struct platform_device *pdev)
> +static void mchp_pdmc_remove(struct platform_device *pdev)
> {
> struct mchp_pdmc *dd = platform_get_drvdata(pdev);
>
> @@ -1142,8 +1142,6 @@ static int mchp_pdmc_remove(struct platform_device *pdev)
> mchp_pdmc_runtime_suspend(dd->dev);
>
> pm_runtime_disable(dd->dev);
> -
> - return 0;
> }
>
> static const struct of_device_id mchp_pdmc_of_match[] = {
> @@ -1168,7 +1166,7 @@ static struct platform_driver mchp_pdmc_driver = {
> .pm = pm_ptr(&mchp_pdmc_pm_ops),
> },
> .probe = mchp_pdmc_probe,
> - .remove = mchp_pdmc_remove,
> + .remove_new = mchp_pdmc_remove,
> };
> module_platform_driver(mchp_pdmc_driver);
>
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 028/173] ASoC: atmel: mchp-spdifrx: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 028/173] ASoC: atmel: mchp-spdifrx: " Uwe Kleine-König
@ 2023-03-16 11:10 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:10 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/mchp-spdifrx.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c
> index eb0c0ef4541e..ff6aba143aee 100644
> --- a/sound/soc/atmel/mchp-spdifrx.c
> +++ b/sound/soc/atmel/mchp-spdifrx.c
> @@ -1183,20 +1183,18 @@ static int mchp_spdifrx_probe(struct platform_device *pdev)
> return err;
> }
>
> -static int mchp_spdifrx_remove(struct platform_device *pdev)
> +static void mchp_spdifrx_remove(struct platform_device *pdev)
> {
> struct mchp_spdifrx_dev *dev = platform_get_drvdata(pdev);
>
> pm_runtime_disable(dev->dev);
> if (!pm_runtime_status_suspended(dev->dev))
> mchp_spdifrx_runtime_suspend(dev->dev);
> -
> - return 0;
> }
>
> static struct platform_driver mchp_spdifrx_driver = {
> .probe = mchp_spdifrx_probe,
> - .remove = mchp_spdifrx_remove,
> + .remove_new = mchp_spdifrx_remove,
> .driver = {
> .name = "mchp_spdifrx",
> .of_match_table = of_match_ptr(mchp_spdifrx_dt_ids),
> --
> 2.39.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 029/173] ASoC: atmel: mchp-spdiftx: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 029/173] ASoC: atmel: mchp-spdiftx: " Uwe Kleine-König
@ 2023-03-16 11:10 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:10 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/mchp-spdiftx.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c
> index 20d135c718b0..850cd97bc229 100644
> --- a/sound/soc/atmel/mchp-spdiftx.c
> +++ b/sound/soc/atmel/mchp-spdiftx.c
> @@ -891,7 +891,7 @@ static int mchp_spdiftx_probe(struct platform_device *pdev)
> return err;
> }
>
> -static int mchp_spdiftx_remove(struct platform_device *pdev)
> +static void mchp_spdiftx_remove(struct platform_device *pdev)
> {
> struct mchp_spdiftx_dev *dev = platform_get_drvdata(pdev);
>
> @@ -899,13 +899,11 @@ static int mchp_spdiftx_remove(struct platform_device *pdev)
> mchp_spdiftx_runtime_suspend(dev->dev);
>
> pm_runtime_disable(dev->dev);
> -
> - return 0;
> }
>
> static struct platform_driver mchp_spdiftx_driver = {
> .probe = mchp_spdiftx_probe,
> - .remove = mchp_spdiftx_remove,
> + .remove_new = mchp_spdiftx_remove,
> .driver = {
> .name = "mchp_spdiftx",
> .of_match_table = of_match_ptr(mchp_spdiftx_dt_ids),
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 030/173] ASoC: atmel: mikroe-proto: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 030/173] ASoC: atmel: mikroe-proto: " Uwe Kleine-König
@ 2023-03-16 11:10 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:10 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/mikroe-proto.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/mikroe-proto.c b/sound/soc/atmel/mikroe-proto.c
> index 954460719aa3..30c87c2c1b0b 100644
> --- a/sound/soc/atmel/mikroe-proto.c
> +++ b/sound/soc/atmel/mikroe-proto.c
> @@ -155,11 +155,9 @@ static int snd_proto_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int snd_proto_remove(struct platform_device *pdev)
> +static void snd_proto_remove(struct platform_device *pdev)
> {
> snd_soc_unregister_card(&snd_proto);
> -
> - return 0;
> }
>
> static const struct of_device_id snd_proto_of_match[] = {
> @@ -174,7 +172,7 @@ static struct platform_driver snd_proto_driver = {
> .of_match_table = snd_proto_of_match,
> },
> .probe = snd_proto_probe,
> - .remove = snd_proto_remove,
> + .remove_new = snd_proto_remove,
> };
>
> module_platform_driver(snd_proto_driver);
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: " Uwe Kleine-König
@ 2023-03-16 11:10 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:10 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/sam9g20_wm8731.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
> index 785b9d01d8af..baf38964b491 100644
> --- a/sound/soc/atmel/sam9g20_wm8731.c
> +++ b/sound/soc/atmel/sam9g20_wm8731.c
> @@ -186,14 +186,12 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int at91sam9g20ek_audio_remove(struct platform_device *pdev)
> +static void at91sam9g20ek_audio_remove(struct platform_device *pdev)
> {
> struct snd_soc_card *card = platform_get_drvdata(pdev);
>
> snd_soc_unregister_card(card);
> atmel_ssc_put_audio(0);
> -
> - return 0;
> }
>
> #ifdef CONFIG_OF
> @@ -210,7 +208,7 @@ static struct platform_driver at91sam9g20ek_audio_driver = {
> .of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids),
> },
> .probe = at91sam9g20ek_audio_probe,
> - .remove = at91sam9g20ek_audio_remove,
> + .remove_new = at91sam9g20ek_audio_remove,
> };
>
> module_platform_driver(at91sam9g20ek_audio_driver);
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: " Uwe Kleine-König
@ 2023-03-16 11:10 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:10 UTC (permalink / raw)
To: u.kleine-koenig, codrin.ciubotariu, lgirdwood, broonie, perex,
tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/sam9x5_wm8731.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
> index 99310e40e7a6..cd1d59a90e02 100644
> --- a/sound/soc/atmel/sam9x5_wm8731.c
> +++ b/sound/soc/atmel/sam9x5_wm8731.c
> @@ -176,14 +176,12 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int sam9x5_wm8731_driver_remove(struct platform_device *pdev)
> +static void sam9x5_wm8731_driver_remove(struct platform_device *pdev)
> {
> struct snd_soc_card *card = platform_get_drvdata(pdev);
> struct sam9x5_drvdata *priv = card->drvdata;
>
> atmel_ssc_put_audio(priv->ssc_id);
> -
> - return 0;
> }
>
> static const struct of_device_id sam9x5_wm8731_of_match[] = {
> @@ -198,7 +196,7 @@ static struct platform_driver sam9x5_wm8731_driver = {
> .of_match_table = of_match_ptr(sam9x5_wm8731_of_match),
> },
> .probe = sam9x5_wm8731_driver_probe,
> - .remove = sam9x5_wm8731_driver_remove,
> + .remove_new = sam9x5_wm8731_driver_remove,
> };
> module_platform_driver(sam9x5_wm8731_driver);
>
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 033/173] ASoC: atmel: tse850-pcm5142: Convert to platform remove callback returning void
2023-03-15 15:05 ` [PATCH 033/173] ASoC: atmel: tse850-pcm5142: " Uwe Kleine-König
2023-03-15 15:42 ` Peter Rosin
@ 2023-03-16 11:11 ` Claudiu.Beznea
1 sibling, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:11 UTC (permalink / raw)
To: u.kleine-koenig, peda, codrin.ciubotariu, lgirdwood, broonie,
perex, tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:05, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/soc/atmel/tse850-pcm5142.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/atmel/tse850-pcm5142.c b/sound/soc/atmel/tse850-pcm5142.c
> index ef537de7719c..efead272d92b 100644
> --- a/sound/soc/atmel/tse850-pcm5142.c
> +++ b/sound/soc/atmel/tse850-pcm5142.c
> @@ -412,15 +412,13 @@ static int tse850_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int tse850_remove(struct platform_device *pdev)
> +static void tse850_remove(struct platform_device *pdev)
> {
> struct snd_soc_card *card = platform_get_drvdata(pdev);
> struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
>
> snd_soc_unregister_card(card);
> regulator_disable(tse850->ana);
> -
> - return 0;
> }
>
> static const struct of_device_id tse850_dt_ids[] = {
> @@ -435,7 +433,7 @@ static struct platform_driver tse850_driver = {
> .of_match_table = of_match_ptr(tse850_dt_ids),
> },
> .probe = tse850_probe,
> - .remove = tse850_remove,
> + .remove_new = tse850_remove,
> };
>
> module_platform_driver(tse850_driver);
> --
> 2.39.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 004/173] ALSA: atmel: ac97: Convert to platform remove callback returning void
2023-03-15 15:04 ` [PATCH 004/173] ALSA: atmel: ac97: " Uwe Kleine-König
@ 2023-03-16 11:11 ` Claudiu.Beznea
0 siblings, 0 replies; 75+ messages in thread
From: Claudiu.Beznea @ 2023-03-16 11:11 UTC (permalink / raw)
To: u.kleine-koenig, perex, tiwai, Nicolas.Ferre, alexandre.belloni
Cc: alsa-devel, linux-arm-kernel, kernel
On 15.03.2023 17:04, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> sound/atmel/ac97c.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
> index 66ecbd4d034e..c8912b8a1dc5 100644
> --- a/sound/atmel/ac97c.c
> +++ b/sound/atmel/ac97c.c
> @@ -843,7 +843,7 @@ static SIMPLE_DEV_PM_OPS(atmel_ac97c_pm, atmel_ac97c_suspend, atmel_ac97c_resume
> #define ATMEL_AC97C_PM_OPS NULL
> #endif
>
> -static int atmel_ac97c_remove(struct platform_device *pdev)
> +static void atmel_ac97c_remove(struct platform_device *pdev)
> {
> struct snd_card *card = platform_get_drvdata(pdev);
> struct atmel_ac97c *chip = get_chip(card);
> @@ -858,13 +858,11 @@ static int atmel_ac97c_remove(struct platform_device *pdev)
> free_irq(chip->irq, chip);
>
> snd_card_free(card);
> -
> - return 0;
> }
>
> static struct platform_driver atmel_ac97c_driver = {
> .probe = atmel_ac97c_probe,
> - .remove = atmel_ac97c_remove,
> + .remove_new = atmel_ac97c_remove,
> .driver = {
> .name = "atmel_ac97c",
> .pm = ATMEL_AC97C_PM_OPS,
> --
> 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
* Re: [PATCH 114/173] ASoC: meson: aiu: Convert to platform remove callback returning void
2023-03-15 15:06 ` [PATCH 114/173] ASoC: meson: aiu: " Uwe Kleine-König
@ 2023-03-18 19:49 ` Martin Blumenstingl
0 siblings, 0 replies; 75+ messages in thread
From: Martin Blumenstingl @ 2023-03-18 19:49 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Jerome Brunet, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Neil Armstrong, Kevin Hilman, alsa-devel,
linux-arm-kernel, linux-amlogic, kernel
On Wed, Mar 15, 2023 at 4:08 PM Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:
>
> The .remove() callback for a platform driver returns an int which makes
> many driver authors wrongly assume it's possible to do error handling by
> returning an error code. However the value returned is (mostly) ignored
> and this typically results in resource leaks. To improve here there is a
> quest to make the remove callback return void. In the first step of this
> quest all drivers are converted to .remove_new() which already returns
> void.
>
> Trivially convert this driver from always returning zero in the remove
> callback to the void returning variant.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 75+ messages in thread
end of thread, other threads:[~2023-03-18 19:50 UTC | newest]
Thread overview: 75+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230315150745.67084-1-u.kleine-koenig@pengutronix.de>
2023-03-15 15:04 ` [PATCH 003/173] ALSA: pxa2xx: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-15 15:04 ` [PATCH 004/173] ALSA: atmel: ac97: " Uwe Kleine-König
2023-03-16 11:11 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 024/173] ASoC: atmel: atmel-i2s: " Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 025/173] ASoC: atmel: atmel_wm8904: " Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 026/173] ASoC: atmel: mchp-i2s-mcc: " Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 027/173] ASoC: atmel: mchp-pdmc: " Uwe Kleine-König
2023-03-16 11:09 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 028/173] ASoC: atmel: mchp-spdifrx: " Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 029/173] ASoC: atmel: mchp-spdiftx: " Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 030/173] ASoC: atmel: mikroe-proto: " Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 031/173] ASoC: atmel: sam9g20_wm8731: " Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 032/173] ASoC: atmel: sam9x5_wm8731: " Uwe Kleine-König
2023-03-16 11:10 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 033/173] ASoC: atmel: tse850-pcm5142: " Uwe Kleine-König
2023-03-15 15:42 ` Peter Rosin
2023-03-16 11:11 ` Claudiu.Beznea
2023-03-15 15:05 ` [PATCH 039/173] ASoC: bcm: cygnus-ssp: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 076/173] ASoC: fsl: imx-audmux: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 077/173] ASoC: fsl: imx-pcm-rpmsg: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 078/173] ASoC: fsl: imx-sgtl5000: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 106/173] ASoC: mediatek: mtk-btcvsd: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 107/173] ASoC: mediatek: mt2701-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 108/173] ASoC: mediatek: mt6797-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 109/173] ASoC: mediatek: mt8173-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 110/173] ASoC: mediatek: mt8183-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 111/173] ASoC: mediatek: mt8188-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-16 10:12 ` Trevor Wu (吳文良)
2023-03-15 15:06 ` [PATCH 112/173] ASoC: mediatek: mt8192-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 113/173] ASoC: mediatek: mt8195-afe-pcm: " Uwe Kleine-König
2023-03-16 8:42 ` AngeloGioacchino Del Regno
2023-03-15 15:06 ` [PATCH 114/173] ASoC: meson: aiu: " Uwe Kleine-König
2023-03-18 19:49 ` Martin Blumenstingl
2023-03-15 15:06 ` [PATCH 115/173] ASoC: mxs: mxs-sgtl5000: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 116/173] ASoC: pxa: mmp-sspa: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 117/173] ASoC: pxa: pxa2xx-ac97: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 119/173] ASoC: rockchip: rockchip_i2s: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 120/173] ASoC: rockchip: rockchip_i2s_tdm: " Uwe Kleine-König
2023-03-15 16:00 ` Nicolas Frattaroli
2023-03-15 16:25 ` Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 121/173] ASoC: rockchip: rockchip_pdm: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 122/173] ASoC: rockchip: rockchip_rt5645: " Uwe Kleine-König
2023-03-15 15:06 ` [PATCH 123/173] ASoC: rockchip: rockchip_spdif: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 136/173] ASoC: stm: stm32_adfsdm: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 137/173] ASoC: stm: stm32_i2s: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 138/173] ASoC: stm: stm32_sai_sub: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 139/173] ASoC: stm: stm32_spdifrx: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 140/173] ASoC: sunxi: sun4i-codec: " Uwe Kleine-König
2023-03-15 16:04 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 141/173] ASoC: sunxi: sun4i-i2s: " Uwe Kleine-König
2023-03-15 16:04 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 142/173] ASoC: sunxi: sun4i-spdif: " Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 143/173] ASoC: sunxi: sun50i-dmic: " Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 144/173] ASoC: sunxi: sun8i-codec: " Uwe Kleine-König
2023-03-15 16:05 ` Jernej Škrabec
2023-03-15 15:07 ` [PATCH 166/173] ASoC: uniphier: evea: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 169/173] ASoC: xilinx: xlnx_formatter_pcm: " Uwe Kleine-König
2023-03-15 15:07 ` [PATCH 170/173] ASoC: xilinx: xlnx_spdif: " Uwe Kleine-König
2023-03-15 15:49 ` [PATCH 000/173] ALSA/ASoC: " Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).