From patchwork Sun Sep 18 16:16:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76484 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp582086qgf; Sun, 18 Sep 2016 09:18:49 -0700 (PDT) X-Received: by 10.66.145.73 with SMTP id ss9mr40122485pab.82.1474215529406; Sun, 18 Sep 2016 09:18:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si27379679pfj.278.2016.09.18.09.18.48; Sun, 18 Sep 2016 09:18:49 -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=@nifty.com; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754196AbcIRQSl (ORCPT + 27 others); Sun, 18 Sep 2016 12:18:41 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:19671 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbcIRQSc (ORCPT ); Sun, 18 Sep 2016 12:18:32 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-07.nifty.com with ESMTP id u8IGGusD024000; Mon, 19 Sep 2016 01:17:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u8IGGusD024000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1474215422; bh=tZ70CMFCHfF7La2J/8Y/MDt89p6Iaznd0uK8XjnNr6A=; h=From:To:Cc:Subject:Date:From; b=mdg5YWnu/4wZB07S6PbSEhNoBVTrkCGP/taSLo/sMKXYLH9lrnxUbQs8Ql8XS5FUZ Jk2ZLaKubW4f0GWvN2ngloYKQ+cONHo5BkoXltiIzPTSqQR3yBYYxClKOK9AOZ1X0P +B012gsxDdegDj0wGYEidT4xw0yx4WJ0sERrJkVsGo5zEmT9hXw9NqYW55yRWR+Qof d1ncHqrtEAW7wA8xGeRD/jfIbCVQ/YU5NF8tpRhSQ4j7aj3IgvNDaRDlI+UwPvl58k O33UuO4N1xU0JRHtTxQg+BbC6vI/ZXitaD6GB4V7/Cajv/fdka+E1VfaaiSbUyuefK JWordaxy2b/kA== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: Greg KH , linux-kernel@vger.kernel.org Cc: linux-clk@vger.kernel.org, Masahiro Yamada , Jay Sternberg , Geert Uytterhoeven , "Andrew F. Davis" , Jens Axboe , Dan Williams , Sebastian Reichel , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Krzysztof Kozlowski , Alexander Shishkin Subject: [RESEND PATCH v2] clk: probe common clock drivers earlier Date: Mon, 19 Sep 2016 01:16:44 +0900 Message-Id: <1474215404-13433-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several SoCs implement platform drivers for clocks rather than CLK_OF_DECLARE(). Clocks should come earlier because they are prerequisites for many of other drivers. It will help to mitigate EPROBE_DEFER issues. Also, drop the comment since it does not carry much value. Signed-off-by: Masahiro Yamada Acked-by: Michael Turquette --- Changes in v2: - Move clk/ even earlier. (above dma/ since many of DMA drivers use clk.) drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/Makefile b/drivers/Makefile index 53abb4a..f0afdfb 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -29,6 +29,8 @@ obj-$(CONFIG_SFI) += sfi/ # was used and do nothing if so obj-$(CONFIG_PNP) += pnp/ obj-y += amba/ + +obj-y += clk/ # Many drivers will want to use DMA so this has to be made available # really early. obj-$(CONFIG_DMADEVICES) += dma/ @@ -142,8 +144,6 @@ obj-$(CONFIG_VHOST) += vhost/ obj-$(CONFIG_VLYNQ) += vlynq/ obj-$(CONFIG_STAGING) += staging/ obj-y += platform/ -#common clk code -obj-y += clk/ obj-$(CONFIG_MAILBOX) += mailbox/ obj-$(CONFIG_HWSPINLOCK) += hwspinlock/