summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-tps68470.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-01-11 13:56:32 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-01-24 18:23:15 +0300
commita1ce76e89907a69713f729ff21db1efa00f3bb47 (patch)
tree2e1f11f56e98ef8032459ebaa4cf51ea54ea0bd9 /drivers/gpio/gpio-tps68470.c
parentb3376ed7d82f5937cecb17ff92d5d8dc0762e1c1 (diff)
downloadlinux-a1ce76e89907a69713f729ff21db1efa00f3bb47.tar.xz
gpio: tps68470: Allow building as module
The gpio-tps68470 driver binds to a tps68470-gpio platform-device which itself gets instantiated by a special MFD driver from drivers/platform/x86/intel/int3472/tps68470.c This MFD driver itself can be built as a module, so it makes no sense to force the gpio-tps68470 driver to always be built-in. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-tps68470.c')
-rw-r--r--drivers/gpio/gpio-tps68470.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tps68470.c b/drivers/gpio/gpio-tps68470.c
index 423b7bc30ae8..aaddcabe9b35 100644
--- a/drivers/gpio/gpio-tps68470.c
+++ b/drivers/gpio/gpio-tps68470.c
@@ -154,5 +154,8 @@ static struct platform_driver tps68470_gpio_driver = {
},
.probe = tps68470_gpio_probe,
};
+module_platform_driver(tps68470_gpio_driver);
-builtin_platform_driver(tps68470_gpio_driver)
+MODULE_ALIAS("platform:tps68470-gpio");
+MODULE_DESCRIPTION("GPIO driver for TPS68470 PMIC");
+MODULE_LICENSE("GPL v2");