From patchwork Sat Feb 22 14:46:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3701171 Return-Path: X-Original-To: patchwork-linux-mmc@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 5A2EE9F2EC for ; Sat, 22 Feb 2014 14:46:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 729C4201D5 for ; Sat, 22 Feb 2014 14:46:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17A2B201C8 for ; Sat, 22 Feb 2014 14:46:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128AbaBVOqj (ORCPT ); Sat, 22 Feb 2014 09:46:39 -0500 Received: from fallback4.mail.ru ([94.100.176.42]:42471 "EHLO fallback4.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbaBVOqj (ORCPT ); Sat, 22 Feb 2014 09:46:39 -0500 Received: from smtp14.mail.ru (smtp14.mail.ru [94.100.176.91]) by fallback4.mail.ru (mPOP.Fallback_MX) with ESMTP id 4BAE1141A50; Sat, 22 Feb 2014 18:46:37 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=H8BPCbJ0OpgHNp3F8GcbrVRrcPOWbB+dualbzsQLeBM=; b=aGbIkpwrtReFiGNphzmN1fdZYB3GDesFKC3CbwoSjSl6c9vmpzm37JFlFGCioXkdPqMQ3D7HwamXtKXKj8eXjQ2GUHixMMg0V6uVp3an6QN46+rKdrqqyA3bSkoscqCGCMlhozt9ozkQ0C8oFEfRcJYYoHiH7x7Xzgz8GUKngCk=; Received: from [188.134.40.128] (port=33948 helo=shc.zet) by smtp14.mail.ru with esmtpa (envelope-from ) id 1WHDqO-0001Fp-Oh; Sat, 22 Feb 2014 18:46:21 +0400 From: Alexander Shiyan To: linux-mmc@vger.kernel.org Cc: Chris Ball , Shawn Guo , Sascha Hauer , Alexander Shiyan Subject: [PATCH 2/2] mmc: mxcmmc: Convert to SIMPLE_DEV_PM_OPS Date: Sat, 22 Feb 2014 18:46:12 +0400 Message-Id: <1393080372-6760-2-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393080372-6760-1-git-send-email-shc_work@mail.ru> References: <1393080372-6760-1-git-send-email-shc_work@mail.ru> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 Signed-off-by: Alexander Shiyan Reviewed-by: Fabio Estevam --- drivers/mmc/host/mxcmmc.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index 84d630e..86401c0 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1220,8 +1220,7 @@ static int mxcmci_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM -static int mxcmci_suspend(struct device *dev) +static int __maybe_unused mxcmci_suspend(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct mxcmci_host *host = mmc_priv(mmc); @@ -1231,7 +1230,7 @@ static int mxcmci_suspend(struct device *dev) return 0; } -static int mxcmci_resume(struct device *dev) +static int __maybe_unused mxcmci_resume(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct mxcmci_host *host = mmc_priv(mmc); @@ -1241,11 +1240,7 @@ static int mxcmci_resume(struct device *dev) return 0; } -static const struct dev_pm_ops mxcmci_pm_ops = { - .suspend = mxcmci_suspend, - .resume = mxcmci_resume, -}; -#endif +static SIMPLE_DEV_PM_OPS(mxcmci_pm_ops, mxcmci_suspend, mxcmci_resume); static struct platform_driver mxcmci_driver = { .probe = mxcmci_probe, @@ -1254,9 +1249,7 @@ static struct platform_driver mxcmci_driver = { .driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, -#ifdef CONFIG_PM .pm = &mxcmci_pm_ops, -#endif .of_match_table = mxcmci_of_match, } };