hwmon: (dell-smm) Move blacklist handling to module init
authorArmin Wolf <W_Armin@gmx.de>
Thu, 23 Nov 2023 00:48:13 +0000 (01:48 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:21:01 +0000 (06:21 -0800)
commit7fd2e1cac5eb5461793e7b0f8689b01720f2dc1b
treed33f8ca04709bbb71d5692e3facb2288eddbe4c2
parent744f7be3937d0362064d8e679a370e5a0296e82c
hwmon: (dell-smm) Move blacklist handling to module init

Future SMM calling backends will not be able to probe during
module init, meaning the DMI tables used for backlisting broken
features would have to drop their __initconst attribute.
Prevent this by moving the blacklist handling to module init.

Tested-by: <serverror@serverror.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20231123004820.50635-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c