From 193f1e326610e01fa784165bc59ca8655bb5c861 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 23 Apr 2026 15:01:41 -0700 Subject: [PATCH] gpio-rb91x-key: add gc owner For platform drivers themselves this is not needed. but for gpiochips, it is to avoid module unload. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/23731 Signed-off-by: Jonas Jelonek --- target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c b/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c index 8b30542c12b..41ea9478971 100644 --- a/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c +++ b/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c @@ -167,6 +167,7 @@ static int gpio_rb91x_key_probe(struct platform_device *pdev) gc = &drvdata->gc; gc->label = GPIO_RB91X_KEY_DRIVER_NAME; gc->parent = dev; + gc->owner = THIS_MODULE; gc->can_sleep = 1; gc->base = -1; gc->ngpio = GPIO_RB91X_KEY_NGPIOS; -- 2.47.3