From: Rosen Penev Date: Thu, 23 Apr 2026 22:01:41 +0000 (-0700) Subject: gpio-rb91x-key: add gc owner X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23731%2Fhead;p=thirdparty%2Fopenwrt.git 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 --- 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;