]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/hwmon/abituguru.c
hwmon: (abituguru) Depend on DMI
[mirror_ubuntu-bionic-kernel.git] / drivers / hwmon / abituguru.c
index e7d4c4687f022dc57546776d00ad3c0d371f6e50..65a35cf5b3c5c57b58803e78ae3eda0b0e99f266 100644 (file)
@@ -1448,15 +1448,12 @@ static int __init abituguru_init(void)
 {
        int address, err;
        struct resource res = { .flags = IORESOURCE_IO };
-
-#ifdef CONFIG_DMI
        const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);
 
        /* safety check, refuse to load on non Abit motherboards */
        if (!force && (!board_vendor ||
                        strcmp(board_vendor, "http://www.abit.com.tw/")))
                return -ENODEV;
-#endif
 
        address = abituguru_detect();
        if (address < 0)