]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* Really fix typo in suspend/resume code
authorMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:59:46 +0000 (23:59 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:59:46 +0000 (23:59 +0000)
init.c

diff --git a/init.c b/init.c
index ee051cd95867c8f6cf407db8f432cb2d21add6dc..9d740193724df62b1ff91d96ae53ca76b0e98254 100644 (file)
--- a/init.c
+++ b/init.c
@@ -386,7 +386,7 @@ static int omnibook_suspend(struct platform_device *dev, pm_message_t state)
                feature = list_entry(p, struct omnibook_feature, list);
                if (feature->suspend) {
                        retval = feature->suspend(feature->io_op);
-                       if (!retval)
+                       if (retval)
                                printk(O_ERR "Unable to suspend the %s feature (error %i).\n", feature->name, retval);
                }
        }
@@ -406,7 +406,7 @@ static int omnibook_resume(struct platform_device *dev)
                feature = list_entry(p, struct omnibook_feature, list);
                if (feature->resume) {
                        retval = feature->resume(feature->io_op);
-                       if (!retval)
+                       if (retval)
                                printk(O_ERR "Unable to resume the %s feature (error %i).\n", feature->name, retval);
                }
        }