Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3167296pxf; Mon, 15 Mar 2021 03:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMOr9+1afNSFSBA0qFGEOZQV9/2ya1UBfuECbJsEkCXp1YpQFG28srbsw1mmtaZvoubK2O X-Received: by 2002:a17:906:684b:: with SMTP id a11mr22053947ejs.329.1615803574595; Mon, 15 Mar 2021 03:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615803574; cv=none; d=google.com; s=arc-20160816; b=mvKAgS6QgbPqvan4Y4EgRmxgWfNS75EYBL5L7LPeikPgosGx9T3gASqqOy0eYDqpEA iT9ox8xdAnQMAA/Yl6CzORiVdbv6MSGWIG2q1M9w1atOtxlgBACX5e7/KiJzJXHbk0vR HRu5nl4S+VWuJ3ZAhxE1ZgPTMVNS4C2UUifsafMKYPITrd3IPzRfys/+AvxyjY9Fu56p oCmIwGYlUhzHz576vkkd3tnQBiiUuMIFnpLwH78J3zsPr3QkFx0+zSZQKehWztshWa89 d2rfa7NYakkEqN2SEHlKO5K4ZJVO8DViAOsAWX2+WgPeCEVwvchvOoPAW0KhjCT3tXB3 A4oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qEcvd79epFvjAlVRoO+1lYJ1AOd3z/2fMLyzMbtlsW0=; b=Sa7y0CbqwNuuXuGiQKpyYhBzbuGt/3DpcfN4u/sVnMQaT2jh+BQkySchhreTZ7bzZC tOFFlPv02KeEd9HN/Pv42ohmaxBpRVKE76/q06Ot8Ea7qg7eIwJ6F267ObPF/mDdKVjY ThMj8Dfcv7Y3ekwM1r6mDAFWPnrGDzx3aG+/O719QkKn4mgS8VtgdwnNjcdGh8F/fLvI lr07rNLuuxpDZilaad3ha1oE1sOuE4N67FnTxi5lZ965TstHW57Ek0K1ANbJ+MXV0J7U uEOsC9q1R0DXoHI9Xruqc/Sa+9yvOrDljrwPdGubuyvUtebi61BlRYSZlnozn/latQV/ LKAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WiR3wWlm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si11957641edn.71.2021.03.15.03.19.11; Mon, 15 Mar 2021 03:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WiR3wWlm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbhCOKQt (ORCPT + 99 others); Mon, 15 Mar 2021 06:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbhCOKQg (ORCPT ); Mon, 15 Mar 2021 06:16:36 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58BF0C061574 for ; Mon, 15 Mar 2021 03:16:36 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id l11so8368876wrp.7 for ; Mon, 15 Mar 2021 03:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qEcvd79epFvjAlVRoO+1lYJ1AOd3z/2fMLyzMbtlsW0=; b=WiR3wWlmCPIN1yifpERq1yzS5j8cZfvVufWe6O6iasibSjtFu8IBSYSw9kqkkEkkxT CZgfdihOpxX5+p+LrH03RXH8slyo/CYLJBxQDIetKcX9DppSepBYgWYNJ60Fo+JjloGB B0n67MRmFbhNaGRArGzB8JWQ28lS8JYMPZJumxHBOJJ8btV/WDT53E1Rdb76m/HEtGJ8 GKFxhBPsG3iC7MUBKEnXV/98Mn4KcFMBIPcjjqVG1JirGZJtSht5lYIQrZWNq5tZzI/E B1GP6/u0THhZwN6FSL42CkuZCnm2CKxtSnXjbpnmTIu4JuoUjdobQjEButKabb4H5U1X Kv1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qEcvd79epFvjAlVRoO+1lYJ1AOd3z/2fMLyzMbtlsW0=; b=DmCnTMZF1YvQ4JXvuoXT61J6MzcyRSoUzRpWoPVLSA5wBrX3ZJLUYO9vPAASYSaC2/ 3eNk2xTlOIhFdWM0dEDpEIUmyNAk8JxDDfriDBM6g4N1sjA8dpWrQ8ywIZjOstJUC5J9 zEI9aG23agNaextwe46kqbUwJCJoDmqu8S1j6WqpyJ/mIBHISB24b8V+AdH6SzP8ui+i AsR5fDOlesEtyQGComvSzGhgFWYhi0XiMkVPZ7Gns4I5fjiE/wyRox80jikYuVw8VjJ9 N8oIVLB3Xn4gtOC6OhOc4iib22grNNuSem8FrrvYNrpecQdtiZcby28vIMiEl3tC9jQy 71cg== X-Gm-Message-State: AOAM530TvTs+CzvImegRSdJbxd4/kPRkL6vruT65f748A4j1O4q9Igc+ V6IuXnw022miFAmgfeDJaCI= X-Received: by 2002:a5d:4443:: with SMTP id x3mr26438383wrr.49.1615803395167; Mon, 15 Mar 2021 03:16:35 -0700 (PDT) Received: from agape.jhs ([5.171.72.229]) by smtp.gmail.com with ESMTPSA id s3sm11280842wmd.21.2021.03.15.03.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 03:16:34 -0700 (PDT) Date: Mon, 15 Mar 2021 11:16:27 +0100 From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/15] staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_EXT_CLK Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove conditional code blocks checked by unused CONFIG_EXT_CLK cleaning required in TODO file: find and remove code blocks guarded by never set CONFIG_FOO defines Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c index a64274fa9907..d0e5b482f382 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -53,20 +53,6 @@ u8 _InitPowerOn_8723BS(struct adapter *padapter) /* all of these MUST be configured before power on */ -#ifdef CONFIG_EXT_CLK - /* Use external crystal(XTAL) */ - value8 = rtw_read8(padapter, REG_PAD_CTRL1_8723B + 2); - value8 |= BIT(7); - rtw_write8(padapter, REG_PAD_CTRL1_8723B + 2, value8); - - /* CLK_REQ High active or Low Active */ - /* Request GPIO polarity: */ - /* 0: low active */ - /* 1: high active */ - value8 = rtw_read8(padapter, REG_MULTI_FUNC_CTRL + 1); - value8 |= BIT(5); - rtw_write8(padapter, REG_MULTI_FUNC_CTRL + 1, value8); -#endif /* CONFIG_EXT_CLK */ /* only cmd52 can be used before power on(card enable) */ ret = CardEnable(padapter); -- 2.20.1