]> asedeno.scripts.mit.edu Git - linux.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)
commit1c80e9603fe8341ed5bea696747d07083d5e0476
treeee714cd72047ae0fffd4e1aa322c4b6fcbdb2c12
parent446647d4b9b90335f29a06ec21a05b508e269866
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