[PATCH 1/2] gpio: htc-egpio: convert to subsys_platform_driver_probe()

From: Brian Masney

Date: Fri Nov 06 2026 - 19:09:52 EST


Reduce boilerplate code in this driver and convert it over to use the
macro subsys_platform_driver_probe().

Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
drivers/gpio/gpio-htc-egpio.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpio/gpio-htc-egpio.c b/drivers/gpio/gpio-htc-egpio.c
index 25a4d4494f3c..0e108d4236d2 100644
--- a/drivers/gpio/gpio-htc-egpio.c
+++ b/drivers/gpio/gpio-htc-egpio.c
@@ -395,9 +395,5 @@ static struct platform_driver egpio_driver = {
},
};

-static int __init egpio_init(void)
-{
- return platform_driver_probe(&egpio_driver, egpio_probe);
-}
/* start early for dependencies */
-subsys_initcall(egpio_init);
+subsys_platform_driver_probe(egpio_driver, egpio_probe);

--
2.56.0