summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/msi-laptop.c
diff options
context:
space:
mode:
authorAxel Lin2010-07-21 00:19:40 +0200
committerMatthew Garrett2010-08-03 15:48:57 +0200
commit80183a4b637982d56965e4a27b823c9a29d185b3 (patch)
treec8d248fb260fbd251030eeb90fbb9c280c36c0c2 /drivers/platform/x86/msi-laptop.c
parentcompal-laptop: add JHL90, battery & hwmon interface (diff)
downloadkernel-qcow2-linux-80183a4b637982d56965e4a27b823c9a29d185b3.tar.gz
kernel-qcow2-linux-80183a4b637982d56965e4a27b823c9a29d185b3.tar.xz
kernel-qcow2-linux-80183a4b637982d56965e4a27b823c9a29d185b3.zip
compal-laptop/fujitsu-laptop/msi-laptop: make dmi_check_cb to return 1 instead of 0
dmi_check_system() walks the table running matching functions until someone returns non zero or we hit the end. This patch makes dmi_check_cb to return 1 so dmi_check_system() return immediately when a match is found. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au> Cc: Matthew Garrett <mjg@redhat.com>a Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/msi-laptop.c')
-rw-r--r--drivers/platform/x86/msi-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
index afd762b58ad9..c67a74c46662 100644
--- a/drivers/platform/x86/msi-laptop.c
+++ b/drivers/platform/x86/msi-laptop.c
@@ -434,7 +434,7 @@ static int dmi_check_cb(const struct dmi_system_id *id)
{
printk(KERN_INFO "msi-laptop: Identified laptop model '%s'.\n",
id->ident);
- return 0;
+ return 1;
}
static struct dmi_system_id __initdata msi_dmi_table[] = {