Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmeya Palande <2ameya@gmail.com>2015-02-26 12:05:51 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-13 14:03:04 +0200
commit98f97ba3e03ab1529fa099ac06f150cbe86df4d3 (patch)
tree9a22b0963d30c1febad492767bf300302e900eb1
parentd97099622356f01e3d58162628c91654c19d46bf (diff)
mfd: kempld-core: Fix callback return value check
commit c8648508ebfc597058d2cd00b6c539110264a167 upstream. On success, callback function returns 0. So invert the if condition check so that we can break out of loop. Signed-off-by: Ameya Palande <2ameya@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/mfd/kempld-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c
index 38917a822335..2df3cbc968d1 100644
--- a/drivers/mfd/kempld-core.c
+++ b/drivers/mfd/kempld-core.c
@@ -629,7 +629,7 @@ static int __init kempld_init(void)
if (force_device_id[0]) {
for (id = kempld_dmi_table; id->matches[0].slot != DMI_NONE; id++)
if (strstr(id->ident, force_device_id))
- if (id->callback && id->callback(id))
+ if (id->callback && !id->callback(id))
break;
if (id->matches[0].slot == DMI_NONE)
return -ENODEV;