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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:48:35 +0000 (10:48 +0100)
commit2c5cdadeab5deac3cb5322f95077a4dfa2324326
treea2c1377615ec493a896035ae23c3f789cdf280ad
parentf523deedff82342859cb3628e5d164ceccfdbc7e
toshiba-wmi: Fix loading the driver on non Toshiba laptops

commit 1c80e9603fe8341ed5bea696747d07083d5e0476 upstream.

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.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/toshiba-wmi.c