From e651bf121d40131e810845d1954bcf774e90f618 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Tue, 17 Oct 2006 23:36:03 +0000 Subject: [PATCH] * Fix hotkay suspend typo --- hotkeys.c | 4 +++- init.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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; -- 2.43.5