[PATCH 2/2] gpio: tps6586x: convert to subsys_platform_driver()

From: Brian Masney

Date: Fri Nov 06 2026 - 19:10:05 EST


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

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

diff --git a/drivers/gpio/gpio-tps6586x.c b/drivers/gpio/gpio-tps6586x.c
index aaacbb54bf5d..e19af562ec3a 100644
--- a/drivers/gpio/gpio-tps6586x.c
+++ b/drivers/gpio/gpio-tps6586x.c
@@ -116,8 +116,4 @@ static struct platform_driver tps6586x_gpio_driver = {
.probe = tps6586x_gpio_probe,
};

-static int __init tps6586x_gpio_init(void)
-{
- return platform_driver_register(&tps6586x_gpio_driver);
-}
-subsys_initcall(tps6586x_gpio_init);
+subsys_platform_driver(tps6586x_gpio_driver);

--
2.56.0