interconnect: imx: Make imx_icc_unregister() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 18 Jul 2022 12:14:09 +0000 (14:14 +0200)
committerGeorgi Djakov <djakov@kernel.org>
Thu, 18 Aug 2022 04:20:41 +0000 (07:20 +0300)
The function imx_icc_unregister() returns zero unconditionally. Make it
return void.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220718121409.171773-9-u.kleine-koenig@pengutronix.de
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/imx/imx.c
drivers/interconnect/imx/imx.h
drivers/interconnect/imx/imx8mm.c
drivers/interconnect/imx/imx8mn.c
drivers/interconnect/imx/imx8mp.c
drivers/interconnect/imx/imx8mq.c

index 6d9f107ff227ab2aa6c2f402215354c0a6c3d569..823d9be9771a1c70a3d3db7d3b844a68c868854c 100644 (file)
@@ -324,15 +324,13 @@ provider_del:
 }
 EXPORT_SYMBOL_GPL(imx_icc_register);
 
-int imx_icc_unregister(struct platform_device *pdev)
+void imx_icc_unregister(struct platform_device *pdev)
 {
        struct imx_icc_provider *imx_provider = platform_get_drvdata(pdev);
 
        imx_icc_unregister_nodes(&imx_provider->provider);
 
        icc_provider_del(&imx_provider->provider);
-
-       return 0;
 }
 EXPORT_SYMBOL_GPL(imx_icc_unregister);
 
index e0a2ee173ecd92bdd94c06c3d2b83b4957c186eb..895907cdcb3bce22b9480e25b0084f6a8ebf579f 100644 (file)
@@ -103,6 +103,6 @@ int imx_icc_register(struct platform_device *pdev,
                     struct imx_icc_node_desc *nodes,
                     int nodes_count,
                     struct imx_icc_noc_setting *noc_settings);
-int imx_icc_unregister(struct platform_device *pdev);
+void imx_icc_unregister(struct platform_device *pdev);
 
 #endif /* __DRIVERS_INTERCONNECT_IMX_H */
index ae797412db96093da578308c225e5ab9d4c14d9a..b43325364aa31adbeddee934b8c6a3d480a54b55 100644 (file)
@@ -88,7 +88,9 @@ static int imx8mm_icc_probe(struct platform_device *pdev)
 
 static int imx8mm_icc_remove(struct platform_device *pdev)
 {
-       return imx_icc_unregister(pdev);
+       imx_icc_unregister(pdev);
+
+       return 0;
 }
 
 static struct platform_driver imx8mm_icc_driver = {
index 1ce94c5bdd8ce9947ecd7ff13ea4e67c8f3f5364..8ce6d8e4bf5e9455de9addd06b942e39dcab7bd4 100644 (file)
@@ -77,7 +77,9 @@ static int imx8mn_icc_probe(struct platform_device *pdev)
 
 static int imx8mn_icc_remove(struct platform_device *pdev)
 {
-       return imx_icc_unregister(pdev);
+       imx_icc_unregister(pdev);
+
+       return 0;
 }
 
 static struct platform_driver imx8mn_icc_driver = {
index 5f1c83ed157bc1365214a30a4b18760304ecdbf5..8bfaf173f1da6278b62672f4abe6607230e78c0f 100644 (file)
@@ -242,7 +242,9 @@ static int imx8mp_icc_probe(struct platform_device *pdev)
 
 static int imx8mp_icc_remove(struct platform_device *pdev)
 {
-       return imx_icc_unregister(pdev);
+       imx_icc_unregister(pdev);
+
+       return 0;
 }
 
 static struct platform_driver imx8mp_icc_driver = {
index 7f00a0511c6e291033826fc8ac6238fc4d6b01d5..b6fb71305c99b5549b4a44fb4bb59c7ce2034325 100644 (file)
@@ -87,7 +87,9 @@ static int imx8mq_icc_probe(struct platform_device *pdev)
 
 static int imx8mq_icc_remove(struct platform_device *pdev)
 {
-       return imx_icc_unregister(pdev);
+       imx_icc_unregister(pdev);
+
+       return 0;
 }
 
 static struct platform_driver imx8mq_icc_driver = {