Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77453840 authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

don't load asus-acpi if model is not supported

asus_hotk_get_info should return -ENODEV if the model is not supported.
http://bugzilla.kernel.org/show_bug.cgi?id=10389



Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 0ef9cff1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1244,6 +1244,8 @@ static int asus_hotk_get_info(void)
			       "default values\n", string);
			printk(KERN_NOTICE
			       "  send /proc/acpi/dsdt to the developers\n");
			kfree(model);
			return -ENODEV;
		}
		hotk->methods = &model_conf[hotk->model];
		return AE_OK;