]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba-wmi: Fix loading the driver on non Toshiba laptops
authorAzael Avalos <coproscefalo@gmail.com>
Thu, 25 Aug 2016 18:50:55 +0000 (12:50 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 19 Oct 2016 20:25:54 +0000 (13:25 -0700)
commit57a548fd26722ceed5260f9550a1e683cab87161
treeee714cd72047ae0fffd4e1aa322c4b6fcbdb2c12
parentc3717fde63d1646513f3ec6aae92d40d4d825373
toshiba-wmi: Fix loading the driver on non Toshiba laptops

Bug 150611 uncovered that the WMI ID used by the toshiba-wmi driver
is not Toshiba specific, and as such, the driver was being loaded
on non Toshiba laptops too.

This patch adds a DMI matching list checking for TOSHIBA as the
vendor, refusing to load if it is not.

Also the WMI GUID was renamed, dropping the TOSHIBA_ prefix, to
better reflect that such GUID is not a Toshiba specific one.

Cc: <stable@vger.kernel.org> # 4.4+
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba-wmi.c