diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-18 04:08:21 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 15:21:47 -0400 |
commit | 046f828b410837d304137cec9e4e0d72e50fc454 (patch) | |
tree | f21f99e1afb1ec3d14da6861fb3ea9094dbc6cb7 | |
parent | 78542e18335e35136c2dcb6c904f3f554241ae97 (diff) |
platform-drivers-x86: samsung-q10: make dmi_check_callback return 1
We only care about if there is any successful match from the dmi table
or no match at all, we can make dmi_check_system return immediately if
we have a successful match instead of iterate thorough the whole table.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
-rw-r--r-- | drivers/platform/x86/samsung-q10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/samsung-q10.c b/drivers/platform/x86/samsung-q10.c index 54cf3d63fe8d..1e54ae74274c 100644 --- a/drivers/platform/x86/samsung-q10.c +++ b/drivers/platform/x86/samsung-q10.c | |||
@@ -127,7 +127,7 @@ static struct platform_device *samsungq10_device; | |||
127 | static int __init dmi_check_callback(const struct dmi_system_id *id) | 127 | static int __init dmi_check_callback(const struct dmi_system_id *id) |
128 | { | 128 | { |
129 | printk(KERN_INFO KBUILD_MODNAME ": found model '%s'\n", id->ident); | 129 | printk(KERN_INFO KBUILD_MODNAME ": found model '%s'\n", id->ident); |
130 | return 0; | 130 | return 1; |
131 | } | 131 | } |
132 | 132 | ||
133 | static struct dmi_system_id __initdata samsungq10_dmi_table[] = { | 133 | static struct dmi_system_id __initdata samsungq10_dmi_table[] = { |