]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
gpio-rb91x-key: add gc owner 23731/head
authorRosen Penev <rosenp@gmail.com>
Thu, 23 Apr 2026 22:01:41 +0000 (15:01 -0700)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 10 Jun 2026 19:41:22 +0000 (21:41 +0200)
For platform drivers themselves this is not needed. but for gpiochips,
it is to avoid module unload.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23731
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c

index 8b30542c12bb6dd1b3bcd54e5956cb8eb7c27181..41ea9478971f8299de1fba19ee9141702d12ee48 100644 (file)
@@ -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;