Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1199135imm; Thu, 4 Oct 2018 09:38:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61LxUiCgzOy+QVb9PvBpVwO/T0QX+bSDF/4jtXUw4bPWAlT0oSMufsd8CQxJKmupwjZ+wDA X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr7262107pld.168.1538671096868; Thu, 04 Oct 2018 09:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538671096; cv=none; d=google.com; s=arc-20160816; b=nxRyikpgJzpm0a+6gBY2iz7d8mZocUsotUyfC1ouYgNEHu+s3tIaYE55Da42orMR9c 71/hdZZlNmHKeBv5DimY2TIWm4TbivJec7trXC4F5QAzUyZ+7ChtaGAduPYYRT7ZssiX roMltPXQVfoEGn4bCBogfbTf4W89UkfnlK3RGWVL5qTQT1WESleHgEgOci15XD+X2hKW EEKyyMSZuZCdbr+uAcZ3NzyfJmgUlcnG+oQHR8J7kHVGre9KM2CFSE3t4HbQ78j6RFDm uUsaz/Pqdke2f+RpqzVp7qImc1r0av8YBzUBY8xgwJ+aWl6wEHZXo9yebvkvrUweBfeP 9B9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FaLwhzpFRHrxVakZcosrdGYbcbYP37d0WLXLHWWU/t4=; b=ERfzK7BXk0LM+I0ljYH669UeuNQFQCorXtm55JVdN9dLFXUAV9OeWq9WOYNenDMZ4w iIFd/ARJSoihg1H1pgTR7ftiMPYlqZdvjptqdqfXOA1nQ8YAW347qPBR6lOPHcAwljj7 JUZROZYJamhddtfhskOkZ0eVe04AfojMvp+lj8LGQYitcpvGy31+suPFTIsCHUyw93r2 S8Wt9pWBc2BnSOr8h55Qgr4e2wyRTMPtlnY+bNS7nOdB/YLvuiDNJMpSL8MEv2H9jmEB gga+R5ycFI5yWQp1KZCNGRbFKs0SrrUxnkoYqcbKHJVtBunRHn6KXbCO20Ls+bl7H55S U9SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ukosLPqo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 62-v6si5732874plc.96.2018.10.04.09.38.01; Thu, 04 Oct 2018 09:38:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ukosLPqo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727982AbeJDXaq (ORCPT + 99 others); Thu, 4 Oct 2018 19:30:46 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38911 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbeJDXaq (ORCPT ); Thu, 4 Oct 2018 19:30:46 -0400 Received: by mail-pg1-f196.google.com with SMTP id r77-v6so3410534pgr.5 for ; Thu, 04 Oct 2018 09:36:43 -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=FaLwhzpFRHrxVakZcosrdGYbcbYP37d0WLXLHWWU/t4=; b=ukosLPqoSijCRw9BSiUOaiBW70zfkAbFK2xjfiETTnDQQMmy4ckuEGeMiMc8ri+v80 FI9bimPNpqWQ7N+f9rMWpyVxx6ggRGsuxRr0DuZ5COJX2jIcb2Nurx54nfPsoPaueQpH Sj1NQmwhWtx0Myh4bJfY0UXBvk9wEc3B/jxCEEXT59zGBBlY4PtBtoWOx8l1/nohKidk +N2BDOa4TxV7HZHEJXpYWwTtoYZsDBt5tOcTkV6tOdDn2cqDKIrJP61cmR9KJ1GnhWOy /wlu/XcAmMc9TLHFgCv33zstLoSPW6WfsZU54Pu7ucXtBaK0x1vNfJruGOEUMjR6CD4l wwCg== 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=FaLwhzpFRHrxVakZcosrdGYbcbYP37d0WLXLHWWU/t4=; b=jEYoUPNd1Kv1V4jHyLQfQNH9k23y7OEZACfUumLYpVv5XVEHk08HVrHhx92BzKUUzr 7507l7VYAIh52/ijojIE9vTZuECRu2XtNyMwfaZQObdKpekNAS3HLdhHpUS2nEcw13Lt NP3gHP56Zr2ilNV8dxKoFWSUi4TQIcj8hxHsn29uwjURA52rEO2HBvQghWH3y2MqHyxt 78LGaePDPF7TZfVhnu6VVeEvh27AZby7DWAk/D55C14vgAzKlmqkaWDCc+P+Yblc/k89 ap2xLW/G8Ma6BYCzWImi96ytgpVxOuiw9WA9qldqqKgJzHmP/9NiKgcFjHxHjNPIUery b9sQ== X-Gm-Message-State: ABuFfogq5nW5hmbhybivTpt8JIJprDWRcsvfwX+s5jM9iNzU8CnQW8zJ LWD0Wf9iaDQecFPAAR6doyU= X-Received: by 2002:a63:5b14:: with SMTP id p20-v6mr6433347pgb.56.1538671002986; Thu, 04 Oct 2018 09:36:42 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id b18-v6sm9108507pgk.15.2018.10.04.09.36.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 09:36:42 -0700 (PDT) Date: Thu, 4 Oct 2018 22:06:36 +0530 From: Nishad Kamdar To: Greg Kroah-Hartman , Joe Perches Cc: NeilBrown , devel@driverdev.osuosl.org, Christian =?utf-8?Q?L=C3=BCtke-Stetzkamp?= , linux-kernel@vger.kernel.org, John Crispin , Dan Carpenter Subject: [PATCH v6 2/3] staging: mt7621-mmc: Remove #if 0 blocks in dbg.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes #if 0 code blocks and usages of functions defined in the #if 0 blocks in dbg.c Signed-off-by: Nishad Kamdar --- drivers/staging/mt7621-mmc/dbg.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c index 4fe4d2fd111e..2bafb3bd026e 100644 --- a/drivers/staging/mt7621-mmc/dbg.c +++ b/drivers/staging/mt7621-mmc/dbg.c @@ -66,23 +66,6 @@ u32 sdio_pro_enable; /* make sure gpt is enabled */ u32 sdio_pro_time; /* no more than 30s */ struct sdio_profile sdio_perfomance = {0}; -#if 0 /* --- chhung */ -void msdc_init_gpt(void) -{ - GPT_CONFIG config; - - config.num = GPT6; - config.mode = GPT_FREE_RUN; - config.clkSrc = GPT_CLK_SRC_SYS; - config.clkDiv = GPT_CLK_DIV_1; /* 13MHz GPT6 */ - - if (GPT_Config(config) == FALSE) - return; - - GPT_Start(GPT6); -} -#endif /* end of --- */ - u32 msdc_time_calc(u32 old_L32, u32 old_H32, u32 new_L32, u32 new_H32) { u32 ret = 0; @@ -268,10 +251,8 @@ static ssize_t msdc_debug_proc_write(struct file *file, } } else if (cmd == SD_TOOL_SDIO_PROFILE) { if (p1 == 1) { /* enable profile */ - if (gpt_enable == 0) { - // msdc_init_gpt(); /* --- by chhung */ + if (gpt_enable == 0) gpt_enable = 1; - } sdio_pro_enable = 1; if (p2 == 0) p2 = 1; -- 2.17.1