From patchwork Mon Feb 12 14:05:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 872090 X-Patchwork-Delegate: jh80.chung@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="VCEdhatA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zg6qd1ChHz9sQm for ; Tue, 13 Feb 2018 01:04:43 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 7B823C21E1E; Mon, 12 Feb 2018 14:04:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 91E64C21E16; Mon, 12 Feb 2018 14:04:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4971DC21D8A; Mon, 12 Feb 2018 14:04:35 +0000 (UTC) Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by lists.denx.de (Postfix) with ESMTPS id ABF4EC21D8A for ; Mon, 12 Feb 2018 14:04:34 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1CE4WXh025893; Mon, 12 Feb 2018 08:04:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518444272; bh=0W+hIXVPmZ5u0/Hpoyo+ZJcKRVeCdeGb1q2RdwdXqQw=; h=From:To:CC:Subject:Date; b=VCEdhatA8FhfMpjq8HHKEpUzecAgaffS+UdOu0IqPGJCr/siW611/ZjAGBnQSyOWZ 9YEiseAjdW1df7eQJyVtMTuehBknAhdl58GD0xpDgJVSrIESVIAxJ25o21A6zg9Qww 4mzKf+jGTJ8hKV5UQG+9Ij5xF9gyOysdO6k0Yui0= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1CE4Wax013338; Mon, 12 Feb 2018 08:04:32 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 12 Feb 2018 08:04:31 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 12 Feb 2018 08:04:32 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1CE4ThO027740; Mon, 12 Feb 2018 08:04:30 -0600 From: Faiz Abbas To: , Date: Mon, 12 Feb 2018 19:35:24 +0530 Message-ID: <1518444324-11889-1-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, faiz_abbas@ti.com Subject: [U-Boot] [PATCH] mmc: Drop unnecessary case for mmc_probe() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Drop the unnecessary empty function case for mmc_probe(). Signed-off-by: Faiz Abbas --- drivers/mmc/mmc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 255310a..e0b9a42 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -2657,12 +2657,7 @@ void mmc_set_preinit(struct mmc *mmc, int preinit) mmc->preinit = preinit; } -#if CONFIG_IS_ENABLED(DM_MMC) && defined(CONFIG_SPL_BUILD) -static int mmc_probe(bd_t *bis) -{ - return 0; -} -#elif CONFIG_IS_ENABLED(DM_MMC) +#if CONFIG_IS_ENABLED(DM_MMC) static int mmc_probe(bd_t *bis) { int ret, i;