gpio: tegra: Support building driver as a loadable module
authorDmitry Osipenko <digetx@gmail.com>
Fri, 22 Jan 2021 18:55:43 +0000 (21:55 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:30 +0000 (11:43 +0100)
commit4a6eac2b4b129800a2ab37d7127e2244bce37653
tree0cc91da988c0f71b625086eef0da75953f4392f3
parent66f7aaa448a71781a623817cd26551e8179927f8
gpio: tegra: Support building driver as a loadable module

Support building driver as a loadable kernel module. This allows to
reduce size of a kernel zImage, which is important for some devices
since size of kernel partition may be limited and since some bootloader
variants have known problems in regards to the initrd placement if kernel
image is too big.

$ lsmod
Module                  Size  Used by
gpio_tegra             16384  27

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/Kconfig
drivers/gpio/gpio-tegra.c