]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio: mockup: be quiet unless something goes wrong
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 25 May 2017 08:33:40 +0000 (10:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 11:28:58 +0000 (13:28 +0200)
When inserting and removing the module repeatedly (e.g. when running
the libgpiod test-suite) the kernel log gets clobbered with messages
reporting successful creation of dummy gpiochips.

Remove this message and only emit logs when something bad happens.

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

index b1ee45cd4302f42dd2ba6b4d4979fdfe46d192f0..c17578e3bd6f438a3edb5b8fd3bd39cb5a61efc3 100644 (file)
@@ -364,9 +364,6 @@ static int gpio_mockup_probe(struct platform_device *pdev)
 
                        return ret;
                }
-
-               dev_info(dev, "gpio<%d..%d> add successful!",
-                        base, base + ngpio);
        }
 
        return 0;