From patchwork Wed May 28 09:44:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 31049 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A952203AB for ; Wed, 28 May 2014 09:44:11 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id i57sf45563820yha.4 for ; Wed, 28 May 2014 02:44:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=/GOzQZ4AXIIK21Q6y0vSEk5oOkcTOzn8Fw3b4x+V6dE=; b=FbavD+fWiza+MJ5/wNoSu3/gi+g6k8XK/0Ib+brAit4rr9AVqimZWLiydFVvoSu6cF d5VOoJmV49jzCTJy07u+9Uc4l+ueYznto79D5xJruATMACxuMvhsKGpg7V9etrsSktUf uD5NYPTozfGoQQNFpCq9Gf2QyCYLkegwmsD3SBkPnRqYGQ9BuZ0v/DjlFQr/TezISSv/ zq3mwYA9QvsaQ+QLs8u1nsxGjPYK2AS+Y5bJ/IIBLNeiNqH3+E3QQfV55s8TZsrM1dw+ 47XLYDk2cxKl3aQrZqoSSswOO/AcLmRMmUumOARVrg9VdpMt0tWxP8RcyW6tkM8fEofB rdAg== X-Gm-Message-State: ALoCoQm+vK1jBUkFCHazVMD3JHArbc+VHSxa1iBEi9iSf7nK932ENOAQfvFPJNEtUbcHpg8XagZz X-Received: by 10.52.2.129 with SMTP id 1mr13728997vdu.4.1401270250912; Wed, 28 May 2014 02:44:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.43.135 with SMTP id e7ls10081qga.70.gmail; Wed, 28 May 2014 02:44:10 -0700 (PDT) X-Received: by 10.53.12.229 with SMTP id et5mr27761459vdd.32.1401270250788; Wed, 28 May 2014 02:44:10 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id fd12si10092964vec.17.2014.05.28.02.44.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 02:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id pa12so12267450veb.32 for ; Wed, 28 May 2014 02:44:10 -0700 (PDT) X-Received: by 10.58.195.231 with SMTP id ih7mr23080687vec.32.1401270250727; Wed, 28 May 2014 02:44:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp187859vcb; Wed, 28 May 2014 02:44:10 -0700 (PDT) X-Received: by 10.152.88.10 with SMTP id bc10mr29425244lab.23.1401270249739; Wed, 28 May 2014 02:44:09 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx.google.com with ESMTPS id w8si20229468laz.45.2014.05.28.02.44.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 02:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id n15so5677950lbi.19 for ; Wed, 28 May 2014 02:44:09 -0700 (PDT) X-Received: by 10.152.197.69 with SMTP id is5mr29513603lac.10.1401270249191; Wed, 28 May 2014 02:44:09 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id mk2sm17845016lbc.8.2014.05.28.02.44.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 02:44:08 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Ulf Hansson Subject: [PATCH] mmc: core: Remove redundant runtime_idle callback Date: Wed, 28 May 2014 11:44:05 +0200 Message-Id: <1401270245-20163-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The runtime PM core handles a runtime_idle callback set to NULL as one returning 0. So, let's just set it to NULL instead. Signed-off-by: Ulf Hansson Acked-by: Jaehoon Chung --- drivers/mmc/core/bus.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index d2dbf02..8a1f124 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c @@ -180,7 +180,6 @@ static int mmc_bus_resume(struct device *dev) #endif #ifdef CONFIG_PM_RUNTIME - static int mmc_runtime_suspend(struct device *dev) { struct mmc_card *card = mmc_dev_to_card(dev); @@ -196,17 +195,10 @@ static int mmc_runtime_resume(struct device *dev) return host->bus_ops->runtime_resume(host); } - -static int mmc_runtime_idle(struct device *dev) -{ - return 0; -} - #endif /* !CONFIG_PM_RUNTIME */ static const struct dev_pm_ops mmc_bus_pm_ops = { - SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume, - mmc_runtime_idle) + SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume, NULL) SET_SYSTEM_SLEEP_PM_OPS(mmc_bus_suspend, mmc_bus_resume) };