From: Mathieu BĂ©rard Date: Tue, 17 Oct 2006 23:36:03 +0000 (+0000) Subject: * Fix hotkay suspend typo X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=e651bf121d40131e810845d1954bcf774e90f618;p=omnibook.git * Fix hotkay suspend typo --- diff --git a/hotkeys.c b/hotkeys.c index 5bc8cdf..935bcfc 100644 --- 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 126583d..2bdf243 100644 --- 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;