From patchwork Fri May 20 14:49:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 68249 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3822057qge; Fri, 20 May 2016 07:51:19 -0700 (PDT) X-Received: by 10.66.78.104 with SMTP id a8mr5497015pax.88.1463755879557; Fri, 20 May 2016 07:51:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si28355643par.183.2016.05.20.07.51.19; Fri, 20 May 2016 07:51:19 -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 S1755910AbcETOvR (ORCPT + 30 others); Fri, 20 May 2016 10:51:17 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:49492 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbcETOvP (ORCPT ); Fri, 20 May 2016 10:51:15 -0400 Received: from grover.sesame (FL1-119-242-215-193.osk.mesh.ad.jp [119.242.215.193]) (authenticated) by conuserg-09.nifty.com with ESMTP id u4KEo5Bj006315; Fri, 20 May 2016 23:50:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u4KEo5Bj006315 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463755810; bh=G6/6Rc/PQq8n3+URmMcNRCgqdX7LC2sBmNkEDS9ecGE=; h=From:To:Cc:Subject:Date:From; b=HuaQf8JHVEs/k3TuruYvLoLOfHVJBlzhmS5yqB9SxTv42dLUONsDhRdKpHpbIKYZo nSIeU9F7ZYM9AOSFgIHbgeAC7rVK9JMMTwrSQoSweDcpGRQPzKtkVIHooylhxIslvD BClMx1KYwu9S7l42yHMNYTJomXdgOS/hcqsV3oF6PoSVjN/6v+yOI6K9XFOZrqi7YZ KwwPrvb1tWNGTNtA82RGBaVfCdNh0PM0Ig6mbdXquJrClHfamgDbxKfuoB9v5PI66j uOcPvm1hyIbRdYnWX5UUY4O6R7tjuo4+n5gfOgzIDZPIj8KQoe+euzhhp9aSZ2M/Bl 4zUy3wFXiyfGQ== X-Nifty-SrcIP: [119.242.215.193] From: Masahiro Yamada To: linux-clk@vger.kernel.org Cc: Masahiro Yamada , Srinivas Kandagatla , Jay Sternberg , Jens Axboe , linux-kernel@vger.kernel.org, =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Krzysztof Kozlowski , Alan Tull , Greg Kroah-Hartman , Alexander Shishkin , Valentin Rothberg Subject: [PATCH v2] clk: probe common clock drivers earlier Date: Fri, 20 May 2016 23:49:53 +0900 Message-Id: <1463755793-9131-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 --- Changes in v2: - Move clk/ above dma/ since DMA drivers generally enable clk drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/Makefile b/drivers/Makefile index 8f5d076..ff39051 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/ @@ -141,8 +143,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/