From patchwork Mon Dec 12 19:51:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 9471167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5D886607D6 for ; Mon, 12 Dec 2016 19:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46DE4284BD for ; Mon, 12 Dec 2016 19:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BBAB284EF; Mon, 12 Dec 2016 19:51:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E93F8284DB for ; Mon, 12 Dec 2016 19:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821AbcLLTv4 (ORCPT ); Mon, 12 Dec 2016 14:51:56 -0500 Received: from www.zeus03.de ([194.117.254.33]:41906 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712AbcLLTvt (ORCPT ); Mon, 12 Dec 2016 14:51:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references; s=k1; bh=uhz1DjGSNNQRcbjPu7NlTHvaGNPRyh24OGvPCbn4oGA=; b=LxQYK13AL/Qx qlUC0MKn9FOjfgg9SWUA7Dx4t2+tARMc3iiDm2l8ebKahOmTWLAHAiL3iEx5pMJf 9HdOwt3PEx5dg+X0lTjTVXJbpM+fZLj/zKT4oK5fdpT3K9I2+fc1OIxkr/RuV4G5 L8Nb2pV8ToWrkT9EigTnYNjPcHN0guQ= Received: (qmail 2264 invoked from network); 12 Dec 2016 20:51:47 +0100 Received: from p54b33eed.dip0.t-ipconnect.de (HELO localhost) (l3s3148p1@84.179.62.237) by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 12 Dec 2016 20:51:47 +0100 From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Simon Horman , Wolfram Sang Subject: [PATCH 4/9] mmc: sh_mobile_sdhi: remove superfluous check in hw_reset Date: Mon, 12 Dec 2016 20:51:23 +0100 Message-Id: <20161212195128.16633-5-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161212195128.16633-1-wsa+renesas@sang-engineering.com> References: <20161212195128.16633-1-wsa+renesas@sang-engineering.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The capability for HW_RESET is only activated if SDR104 is present, so no need to check for SDR104 in the function itself again. Signed-off-by: Wolfram Sang --- drivers/mmc/host/sh_mobile_sdhi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 96ebe985d5cdc6..7964f9a87d9c20 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -460,9 +460,6 @@ static void sh_mobile_sdhi_hw_reset(struct tmio_mmc_host *host) { struct sh_mobile_sdhi *priv; - if (!(host->mmc->caps & MMC_CAP_UHS_SDR104)) - return; - priv = host_to_priv(host); /* Reset SCC */