]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: parse the module params in init, not probe
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:38 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:23 +0000 (22:42 +0100)
commit617b096ad160a8c64782269e68d9b54f529443fb
tree003843920d39d61fa6d3b7e859458380f6aeeb68
parentcbdf97b16168ddd351e812a30b37ccf1ce8a2598
gpio: mockup: parse the module params in init, not probe

If the module parameters are invalid, we should bail out from the init
function instead of detecting it during the device probe. That way we
don't even allow the user to load the module if we don't accept the
arguments.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c