From: Mathieu BĂ©rard Date: Tue, 17 Oct 2006 23:59:46 +0000 (+0000) Subject: * Really fix typo in suspend/resume code X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=461706721f1b0be1a229e76cfe1e8e7588a8067b;p=omnibook.git * Really fix typo in suspend/resume code --- 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); } }