Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f86b7c70 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

gpio: clps711x: Add missing .owner to struct gpio_chip



Add missing .owner of struct gpio_chip. This prevents the
module from being removed from underneath its users.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a5d6d271
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -65,6 +65,7 @@ static int clps711x_gpio_probe(struct platform_device *pdev)
	}
	}


	bgc->gc.base = id * 8;
	bgc->gc.base = id * 8;
	bgc->gc.owner = THIS_MODULE;
	platform_set_drvdata(pdev, bgc);
	platform_set_drvdata(pdev, bgc);


	return gpiochip_add(&bgc->gc);
	return gpiochip_add(&bgc->gc);