From patchwork Thu May 5 07:57:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 67195 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp614507qge; Thu, 5 May 2016 00:57:38 -0700 (PDT) X-Received: by 10.66.138.16 with SMTP id qm16mr18701702pab.28.1462435058137; Thu, 05 May 2016 00:57:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fa5si9924696pab.125.2016.05.05.00.57.37; Thu, 05 May 2016 00:57:38 -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 S1756187AbcEEH5g (ORCPT + 29 others); Thu, 5 May 2016 03:57:36 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:19083 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753216AbcEEH5e (ORCPT ); Thu, 5 May 2016 03:57:34 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id u457uhR6015777; Thu, 5 May 2016 16:56:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u457uhR6015777 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1462435005; bh=e71ATNFkAi1nmSX5gCJYqVS5YNOP0V1nf0O/1T0SBAc=; h=From:To:Cc:Subject:Date:From; b=UZgNWAvxFryvYlRIrihgXDdTEdjLF+NZQzmMWbKWi8iB90xSnpnky19wQ9+8A3+ig bfSXIj4AuTqWgfCDk4226LuyMuB/aAN00CrH8aM9l/j8Als3RXnaPHhS9+xwkwsEiS +xzSZjdKRCBFJeQ94espmWf2OAWPwOdNlTZS19FuwDRHXstP1FvyfzUVI+uAjr2ItK XmgHWohM13MqRAxd5feGLG17cP/nv96B2Zks2qDB3zMs0SLory7KvD3yQY/BLnlE6X i2bESyW2L/6WUy1TLgHBtTxkJuBimJpb7jzgUxsSwZeGzGwY+nUjr5Q14fSagmd7r6 +qpAdabq8wQog== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-clk@vger.kernel.org Cc: Masahiro Yamada , Jay Sternberg , Jens Axboe , linux-kernel@vger.kernel.org, Dan Williams , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Krzysztof Kozlowski , Greg Kroah-Hartman , Alexander Shishkin , Valentin Rothberg Subject: [PATCH] clk: probe common clock drivers earlier Date: Thu, 5 May 2016 16:57:17 +0900 Message-Id: <1462435037-27979-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 look valuable. Signed-off-by: Masahiro Yamada --- drivers/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/Makefile b/drivers/Makefile index 8f5d076..a2a4922 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -44,6 +44,7 @@ obj-$(CONFIG_REGULATOR) += regulator/ # reset controllers early, since gpu drivers might rely on them to initialize obj-$(CONFIG_RESET_CONTROLLER) += reset/ +obj-y += clk/ # tty/ comes before char/ so that the VT console is the boot-time # default. @@ -141,8 +142,6 @@ obj-$(CONFIG_VHOST_RING) += 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/