gpio: mockup: merge gpio_mockup_add() into gpio_mockup_probe()
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:43 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:26 +0000 (22:42 +0100)
commit6d974d32919501ebac1576fda0ce042f0a58dd8f
tree2dd2e8e0bd93d06e0fddafd1b1ac79666c5d7919
parentb9576d03d52eb16dce5f6b4b3800e504cafe87e5
gpio: mockup: merge gpio_mockup_add() into gpio_mockup_probe()

Now that the probe() function only does what is should, there's no
need to split the chip adding logic into a separate routine. Merge
gpio_mockup_add() into gpio_mockup_probe().

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