]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* Fix hotkay suspend typo
authorMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:36:03 +0000 (23:36 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:36:03 +0000 (23:36 +0000)
hotkeys.c
init.c

index 5bc8cdf3c9ddfb72829986fd825a913b36ab5281..935bcfc2ad3fae226f6d480ecc54ed781b820574 100644 (file)
--- a/hotkeys.c
+++ b/hotkeys.c
@@ -71,7 +71,9 @@ static int omnibook_hotkeys_resume(struct omnibook_operation *io_op)
 {
        int retval;
        retval = io_op->backend->hotkeys_set(io_op, saved_state);
-       return min(retval, 0);
+       if(retval < 0)
+               return retval;
+       return 0;
 }
 
 /*
diff --git a/init.c b/init.c
index 126583dfe971694aa64aa3a6a2c6fbdb3bcdc53c..2bdf2433a7503ebb190048120278ef1432a76c7f 100644 (file)
--- a/init.c
+++ b/init.c
@@ -387,7 +387,7 @@ static int omnibook_suspend(struct platform_device *dev, pm_message_t state)
                if (feature->suspend) {
                        retval = feature->suspend(feature->io_op);
                        if (!retval)
-                               printk(O_ERR "Unable to suspend the %s feature", feature->name);
+                               printk(O_ERR "Unable to suspend the %s feature.\n", feature->name);
                }
        }
        return 0;
@@ -407,7 +407,7 @@ static int omnibook_resume(struct platform_device *dev)
                if (feature->resume) {
                        retval = feature->resume(feature->io_op);
                        if (!retval)
-                               printk(O_ERR "Unable to resume the %s feature", feature->name);
+                               printk(O_ERR "Unable to resume the %s feature.\n", feature->name);
                }
        }
        return 0;