From 461706721f1b0be1a229e76cfe1e8e7588a8067b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Tue, 17 Oct 2006 23:59:46 +0000 Subject: [PATCH] * Really fix typo in suspend/resume code --- init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index ee051cd..9d74019 100644 --- 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); } } -- 2.43.5