From patchwork Tue Jul 7 18:38:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Fenkart X-Patchwork-Id: 6737461 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8BC919F3E6 for ; Tue, 7 Jul 2015 18:39:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B373F2060C for ; Tue, 7 Jul 2015 18:39:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2B002056D for ; Tue, 7 Jul 2015 18:39:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933075AbbGGSjv (ORCPT ); Tue, 7 Jul 2015 14:39:51 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34892 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933820AbbGGSi7 (ORCPT ); Tue, 7 Jul 2015 14:38:59 -0400 Received: by wiga1 with SMTP id a1so264773766wig.0 for ; Tue, 07 Jul 2015 11:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8ChlY+yrDXdverYzg2FwcnedhheD7JMVeKhCll5okBk=; b=M6iWpdnHKOsxrZFsUBBk/rHhsq80Fv2/oJ8rL8KZfaSm3crM9ZhaNMn5eJWaxEv+tg 7WoODz2GniQy4snAAN8TEGSlAfesTNQ0QHUkUt2nJL4sWUhfNqD5YNGXuWgGAxzC3j8c j1xMXcVy2xi9hai8ifIq2E/ruQsZ4wdr+QWSvtU7PyX28WIHCs6Mv6fA7HwBobXItm+D 76NzMrAWxhMgg0jn7wMzGFL6lyVZeCb+Sd+NVZD7FaBZ21W/bJia536EIshA5pFXH4ac dA3BlN3EIZoss6ZRIermaSq+vGoh7kplHa7qRV29nK/nxeNTOo4Fb2MVSB7q11lKq+ge KwPw== X-Received: by 10.180.149.206 with SMTP id uc14mr23797465wib.12.1436294338395; Tue, 07 Jul 2015 11:38:58 -0700 (PDT) Received: from localhost (ip-89-176-167-254.net.upcbroadband.cz. [89.176.167.254]) by mx.google.com with ESMTPSA id d5sm1249406wiz.24.2015.07.07.11.38.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2015 11:38:57 -0700 (PDT) From: Andreas Fenkart To: linux-mmc@vger.kernel.org Cc: Andreas Fenkart Subject: [PATCH v2 2/2] mmc: omap_hsmmc: regulator automatically released by devm Date: Tue, 7 Jul 2015 20:38:44 +0200 Message-Id: <1436294324-18666-3-git-send-email-afenkart@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436294324-18666-1-git-send-email-afenkart@gmail.com> References: <1436294324-18666-1-git-send-email-afenkart@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Andreas Fenkart --- drivers/mmc/host/omap_hsmmc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 806867b..ec1bcc7 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -394,12 +394,6 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host) return 0; } -static void omap_hsmmc_reg_put(struct omap_hsmmc_host *host) -{ - if (mmc_pdata(host)->set_power) - return; -} - static inline int omap_hsmmc_have_reg(void) { return 1; @@ -417,10 +411,6 @@ static inline int omap_hsmmc_reg_get(struct omap_hsmmc_host *host) return -EINVAL; } -static inline void omap_hsmmc_reg_put(struct omap_hsmmc_host *host) -{ -} - static inline int omap_hsmmc_have_reg(void) { return 0; @@ -2133,7 +2123,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev) err_slot_name: mmc_remove_host(mmc); - omap_hsmmc_reg_put(host); err_irq: device_init_wakeup(&pdev->dev, false); if (host->tx_chan) @@ -2157,7 +2146,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) pm_runtime_get_sync(host->dev); mmc_remove_host(host->mmc); - omap_hsmmc_reg_put(host); if (host->tx_chan) dma_release_channel(host->tx_chan);