Skip to content

Commit 193f1e3

Browse files
nehebjonasjelonek
authored andcommitted
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 <rosenp@gmail.com> Link: openwrt/openwrt#23731 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
1 parent e6f2cd1 commit 193f1e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static int gpio_rb91x_key_probe(struct platform_device *pdev)
167167
gc = &drvdata->gc;
168168
gc->label = GPIO_RB91X_KEY_DRIVER_NAME;
169169
gc->parent = dev;
170+
gc->owner = THIS_MODULE;
170171
gc->can_sleep = 1;
171172
gc->base = -1;
172173
gc->ngpio = GPIO_RB91X_KEY_NGPIOS;

0 commit comments

Comments
 (0)