compal-laptop/fujitsu-laptop/msi-laptop: make dmi_check_cb to return 1 instead of 0
authorAxel Lin <[email protected]>
Tue, 20 Jul 2010 22:19:40 +0000 (15:19 -0700)
committerMatthew Garrett <[email protected]>
Tue, 3 Aug 2010 13:48:57 +0000 (09:48 -0400)
commit80183a4b637982d56965e4a27b823c9a29d185b3
treec8d248fb260fbd251030eeb90fbb9c280c36c0c2
parent9be0fcb5ed46509f859542fb2871ac2d277b5407
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 <[email protected]>
Acked-by: Jonathan Woithe <[email protected]>
Cc: Matthew Garrett <[email protected]>a
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
drivers/platform/x86/compal-laptop.c
drivers/platform/x86/fujitsu-laptop.c
drivers/platform/x86/msi-laptop.c