From patchwork Mon Aug 25 12:26:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 4774191 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F10C9F3B4 for ; Mon, 25 Aug 2014 12:28:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5EABC200D6 for ; Mon, 25 Aug 2014 12:28:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 924D12010B for ; Mon, 25 Aug 2014 12:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932372AbaHYM0k (ORCPT ); Mon, 25 Aug 2014 08:26:40 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:58435 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932364AbaHYM0i (ORCPT ); Mon, 25 Aug 2014 08:26:38 -0400 Received: by mail-wg0-f41.google.com with SMTP id z12so13247203wgg.24 for ; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d/AuRgFr6yxhI88wo725m4QxZiDo4o/NDJfFp3ud5TI=; b=iW2sBI6g787EiOk8WzvIwRVABoW2Awha70+QLLkhk8hIvJNhluNYwhfzJJRaCTqBg+ zY88UiUGxOn+fn3t3rscESWqxSD/xJJzbL6vaAWYgAHZAxnJvWXQCd+ZN7sjDOH5U7hc LGfXNdp9UaOB5ApXDSUOp3cxgdy5zEokXueqCoDSl6Wz8ttKsYSERElTDCPRrTCf9l6/ K7mh4nOmoLs867sl6ayWWNfpq3EWRyiTRVYGBGieb9yw0mETtt0SN45/rqCz/7iewVut Qq5OMwVhyhYMPfPQxE/7lU7YQUFYuR14zAbuH2zzgmYt6lsSZ+gE6uZHiaAMwe//ORjc 3CAg== X-Gm-Message-State: ALoCoQktyPClYmXwGLkGo/Sg2RSX/+lfKo2O0BtT/yjZ7Az6g7t11LI6zaq9Cp6qMgq73tbeTRfb X-Received: by 10.180.87.231 with SMTP id bb7mr15420676wib.63.1408969597777; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id u5sm145337wia.17.2014.08.25.05.26.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Aug 2014 05:26:37 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ian Molton , Chris Ball Cc: Geert Uytterhoeven , Linux-sh list , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH 08/12] mmc: sdhi: Make runtime PM callbacks available for CONFIG_PM Date: Mon, 25 Aug 2014 14:26:00 +0200 Message-Id: <1408969564-6335-9-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408969564-6335-1-git-send-email-ulf.hansson@linaro.org> References: <1408969564-6335-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To be able to simplify system PM, let's re-use the runtime PM callbacks by converting to the SET_PM_RUNTIME_PM_OPS macro. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sh_mobile_sdhi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index be5e25d..4cd0f09 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -333,7 +333,7 @@ static int sh_mobile_sdhi_remove(struct platform_device *pdev) static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(tmio_mmc_host_suspend, tmio_mmc_host_resume) - SET_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, + SET_PM_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, tmio_mmc_host_runtime_resume, NULL) };