platform/x86: thinkpad_acpi: Remove unused sensors_pdev_attrs_registered flag
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Nov 2021 21:04:23 +0000 (22:04 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 25 Nov 2021 15:22:50 +0000 (16:22 +0100)
After the recent sysfs-attributes registration cleanups, the
tp_features.sensors_pdev_attrs_registered flag only ever gets set and
never gets read, remove it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211123210424.266607-6-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c

index 63cb71c..c198acc 100644 (file)
@@ -333,7 +333,6 @@ static struct {
        u32 input_device_registered:1;
        u32 platform_drv_registered:1;
        u32 sensors_pdrv_registered:1;
-       u32 sensors_pdev_attrs_registered:1;
        u32 hotkey_poll_active:1;
        u32 has_adaptive_kbd:1;
        u32 kbd_lang:1;
@@ -11232,7 +11231,6 @@ static int __init thinkpad_acpi_module_init(void)
                thinkpad_acpi_module_exit();
                return ret;
        }
-       tp_features.sensors_pdev_attrs_registered = 1;
 
        mutex_init(&tpacpi_inputdev_send_mutex);
        tpacpi_inputdev = input_allocate_device();