gpio: pl061: Support building as module
authorRob Herring <robh@kernel.org>
Thu, 9 Apr 2020 01:41:10 +0000 (19:41 -0600)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 14 Apr 2020 14:23:46 +0000 (16:23 +0200)
commit616844408de7f21546c3c2a71ea7f8d364f45e0d
tree8fa261e10cc99b1337e2a3319c7feb3025113c4d
parent85a94ff8fb14511c88b8d21f82937197d76b82a2
gpio: pl061: Support building as module

Enable building the PL061 GPIO driver as a module.

This does change the initcall level when built-in. This shouldn't be a
problem as any user should support deferred probe by now. A scan of DT
based platforms at least didn't reveal any users that would be a
problem.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/Kconfig
drivers/gpio/gpio-pl061.c