From patchwork Mon Sep 6 12:32:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 178002 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Mon, 06 Sep 2010 13:32:39 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1OsasI-0008OC-UQ for chris@printf.net; Mon, 06 Sep 2010 13:32:39 +0100 Received: by mail.laptop.org (Postfix) id E7A2B241A0; Mon, 6 Sep 2010 08:32:18 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id D835B2419F for ; Mon, 6 Sep 2010 08:32:18 -0400 (EDT) X-ASG-Debug-ID: 1283776352-0b74fd650001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id BibPQHHfcSHd893h for ; Mon, 06 Sep 2010 08:32:33 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750885Ab0IFMcb (ORCPT ); Mon, 6 Sep 2010 08:32:31 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:58777 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784Ab0IFMcb convert rfc822-to-8bit (ORCPT ); Mon, 6 Sep 2010 08:32:31 -0400 Received: by gwj17 with SMTP id 17so1523443gwj.19 for ; Mon, 06 Sep 2010 05:32:30 -0700 (PDT) Received: by 10.100.214.20 with SMTP id m20mr3083846ang.69.1283776349642; Mon, 06 Sep 2010 05:32:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.146.71 with HTTP; Mon, 6 Sep 2010 05:32:09 -0700 (PDT) X-Originating-IP: [46.116.15.195] From: Ohad Ben-Cohen Date: Mon, 6 Sep 2010 15:32:09 +0300 Message-ID: X-ASG-Orig-Subj: generic runtime pm callbacks Subject: generic runtime pm callbacks To: linux-pm@lists.linux-foundation.org Cc: linux-mmc@vger.kernel.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1283776352 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests=MARKETING_SUBJECT X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.40090 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.60 MARKETING_SUBJECT Subject contains popular marketing words diff --git a/drivers/base/power/generic_ops.c b/drivers/base/power/generic_ops. index 304c831..531762a 100644 --- a/drivers/base/power/generic_ops.c +++ b/drivers/base/power/generic_ops.c @@ -49,7 +49,7 @@ int pm_generic_runtime_suspend(struct device *dev)        const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;        int ret; -       ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : -EINVAL; +       ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0;        return ret;  } @@ -68,7 +68,7 @@ int pm_generic_runtime_resume(struct device *dev)        const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;        int ret; -       ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : -EINVAL; +       ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : 0;        return ret;  }