From patchwork Tue Apr 28 01:54:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 6285131 Return-Path: X-Original-To: patchwork-linux-arm@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 8AAFF9F1C0 for ; Tue, 28 Apr 2015 02:00:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2A1320328 for ; Tue, 28 Apr 2015 02:00:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 935DB20351 for ; Tue, 28 Apr 2015 02:00:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmumD-0003Zf-Vq; Tue, 28 Apr 2015 01:57:33 +0000 Received: from mail-pa0-f47.google.com ([209.85.220.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ymum6-0003UA-0k for linux-arm-kernel@lists.infradead.org; Tue, 28 Apr 2015 01:57:27 +0000 Received: by pabsx10 with SMTP id sx10so148359488pab.3 for ; Mon, 27 Apr 2015 18:57:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=82LJvoL3ZJ/foj29cexqkMHnJqxGmGwXmFO+3FEM+ew=; b=lcR+6S68O5BzOStrwoPqzRi3X6dv6V3B5KuEmGZmY+DkpIYBy8oQM8K68MTaNNmlwV OW7mb4I2e7+74zO/foIOlTMB+21Y9P3BOtbp6YOxbzhqZkRNf+t7Vk0zVJUm14tzjh5v IDYyBejZhfLPwbtqQRbXMHNjCqKU9pl0k5RwBrcf6YCSmHqxNm2yFveAiRH3SS5vdQiW Beoy72SVBTlr17Ps5n0QrZ+hW65aEI20JN6dg3bF3B9wC6MTtFFbJi2w1PnFWfpixIE2 8W43C4SLiSEa4egvrJ6aySd1RjrVJ2DXN6gMLO8ApylKaNsRlfWjjDv1MybIc8ky8XCx 0yYg== X-Gm-Message-State: ALoCoQmDBF9UB+yyjzglqvA40EussOw0RJl6V4iBfOfsIFmqXrKXWhzZ7+GyFbp++HLng2diDG86 X-Received: by 10.68.69.81 with SMTP id c17mr1697957pbu.169.1430186224373; Mon, 27 Apr 2015 18:57:04 -0700 (PDT) Received: from localhost.localdomain ([104.207.83.1]) by mx.google.com with ESMTPSA id dk5sm20649568pdb.88.2015.04.27.18.57.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 18:57:03 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: imx: drop epit timer initialization from imx35 clock driver Date: Tue, 28 Apr 2015 09:54:28 +0800 Message-Id: <1430186068-24511-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_185726_115020_11FBC223 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) Cc: Shawn Guo , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 EPIT provides another timer implementation besides the default GPT timer. The imx35 clock driver will use EPIT timer when option CONFIG_MXC_USE_EPIT is enabled. However, initializing timers from clock driver is a workaround solution and causes problem when we move clock drivers into driver/clk. Let's simply drop the EPIT initialization from there. If people really want this EPIT option, EPIT timer driver needs to be reworked to do the initialization in a standard way - use CLOCKSOURCE_OF_DECLARE() with device tree support. Reported-by: kbuild test robot Signed-off-by: Shawn Guo --- drivers/clk/imx/clk-imx35.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c index 133fda1dcb25..f2f3b8164f7b 100644 --- a/drivers/clk/imx/clk-imx35.c +++ b/drivers/clk/imx/clk-imx35.c @@ -293,11 +293,7 @@ int __init mx35_clocks_init(void) imx_print_silicon_rev("i.MX35", mx35_revision()); -#ifdef CONFIG_MXC_USE_EPIT - epit_timer_init(MX35_IO_ADDRESS(MX35_EPIT1_BASE_ADDR), MX35_INT_EPIT1); -#else mxc_timer_init(MX35_GPT1_BASE_ADDR, MX35_INT_GPT); -#endif return 0; }