When checking if we can load gpio-mockup, we don't pass the
gpio_mockup_ranges argument to the module. This makes probe() fail
and causes an error message to be emitted.
Pass a correct argument to gpio-mockup so that a dummy GPIO chip gets
created and no errors are displayed.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
/* Then see if we can freely load and unload it. */
status = kmod_module_probe_insert_module(globals.module, 0,
- NULL, NULL, NULL, NULL);
+ "gpio_mockup_ranges=-1,4",
+ NULL, NULL, NULL);
if (status)
die_perr("unable to load gpio-mockup");