Commit 04fd1ca7 authored by Hans de Goede's avatar Hans de Goede Committed by Linus Walleij

gpiolib: acpi: Add missing __init(const) markers to initcall-s

The gpiolib ACPI code uses 2 initcall-s and the called function
(and used DMI table) is missing __init(const) markers.

This commit fixes this freeing up some extra memory once the kernel
has completed booting.
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200325103956.109284-2-hdegoede@redhat.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8f3d9f35
...@@ -1353,7 +1353,7 @@ int acpi_gpio_count(struct device *dev, const char *con_id) ...@@ -1353,7 +1353,7 @@ int acpi_gpio_count(struct device *dev, const char *con_id)
} }
/* Run deferred acpi_gpiochip_request_irqs() */ /* Run deferred acpi_gpiochip_request_irqs() */
static int acpi_gpio_handle_deferred_request_irqs(void) static int __init acpi_gpio_handle_deferred_request_irqs(void)
{ {
struct acpi_gpio_chip *acpi_gpio, *tmp; struct acpi_gpio_chip *acpi_gpio, *tmp;
...@@ -1371,7 +1371,7 @@ static int acpi_gpio_handle_deferred_request_irqs(void) ...@@ -1371,7 +1371,7 @@ static int acpi_gpio_handle_deferred_request_irqs(void)
/* We must use _sync so that this runs after the first deferred_probe run */ /* We must use _sync so that this runs after the first deferred_probe run */
late_initcall_sync(acpi_gpio_handle_deferred_request_irqs); late_initcall_sync(acpi_gpio_handle_deferred_request_irqs);
static const struct dmi_system_id gpiolib_acpi_quirks[] = { static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
{ {
/* /*
* The Minix Neo Z83-4 has a micro-USB-B id-pin handler for * The Minix Neo Z83-4 has a micro-USB-B id-pin handler for
...@@ -1455,7 +1455,7 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] = { ...@@ -1455,7 +1455,7 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] = {
{} /* Terminating entry */ {} /* Terminating entry */
}; };
static int acpi_gpio_setup_params(void) static int __init acpi_gpio_setup_params(void)
{ {
const struct acpi_gpiolib_dmi_quirk *quirk = NULL; const struct acpi_gpiolib_dmi_quirk *quirk = NULL;
const struct dmi_system_id *id; const struct dmi_system_id *id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment