diff options
Diffstat (limited to 'drivers/input/misc/max77693-haptic.c')
-rw-r--r-- | drivers/input/misc/max77693-haptic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c index d605db4d2f39..7b1fde93799e 100644 --- a/drivers/input/misc/max77693-haptic.c +++ b/drivers/input/misc/max77693-haptic.c | |||
@@ -152,7 +152,7 @@ static void max77693_haptic_disable(struct max77693_haptic *haptic) | |||
152 | { | 152 | { |
153 | int error; | 153 | int error; |
154 | 154 | ||
155 | if (haptic->enabled) | 155 | if (!haptic->enabled) |
156 | return; | 156 | return; |
157 | 157 | ||
158 | error = max77693_haptic_configure(haptic, false); | 158 | error = max77693_haptic_configure(haptic, false); |