From patchwork Mon Jan 12 02:53:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonyoung Shim X-Patchwork-Id: 5607681 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 15164C058D for ; Mon, 12 Jan 2015 02:52:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B40E20642 for ; Mon, 12 Jan 2015 02:52:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3EF322063D for ; Mon, 12 Jan 2015 02:52:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751355AbbALCwt (ORCPT ); Sun, 11 Jan 2015 21:52:49 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:20447 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044AbbALCws (ORCPT ); Sun, 11 Jan 2015 21:52:48 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NI1004XHMNYO2B0@mailout1.samsung.com>; Mon, 12 Jan 2015 11:52:46 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 6D.D0.18484.EF633B45; Mon, 12 Jan 2015 11:52:46 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-5a-54b336fe7b6f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FB.22.20081.EF633B45; Mon, 12 Jan 2015 11:52:46 +0900 (KST) Received: from localhost.localdomain ([10.252.81.123]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NI100CW9MNYO7H0@mmp2.samsung.com>; Mon, 12 Jan 2015 11:52:46 +0900 (KST) From: Joonyoung Shim To: linux-i2c@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, wsa@the-dreams.de, kgene.kim@samsung.com, naveenkrishna.ch@gmail.com, broonie@kernel.org, jy0922.shim@samsung.com Subject: [PATCH] i2c: exynos5: Move initialization code to subsys_initcall() Date: Mon, 12 Jan 2015 11:53:02 +0900 Message-id: <1421031182-18992-1-git-send-email-jy0922.shim@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsWyRsSkWPef2eYQg75NkhZTHz5hs3hx7yKL Re+Cq2wWHX+/MFrMOL+PyWLRtv/MFitPzGJ2YPfYOesuu8emVZ1sHn1bVjF6nDz1hMXj8ya5 ANYoLpuU1JzMstQifbsErow/0+YwF+zhqDj0tbaBcR17FyMnh4SAicT/RRdZIWwxiQv31rN1 MXJxCAksZZT4tekdG0zRxd2bmCES0xkldp19ww7htDFJfJt9DmwUm4CexJ1tx5lAbBEBWYnW B2vAOpgF5jBKrDr8DWyHsICPxJw1XUA2BweLgKrE98d2ICavgLvEoT22EMvkJE4em8wK0ioh 8J9N4sP//cwgCRYBAYlvkw+xgNRLAM3fdIAZol5S4uCKGywTGAUXMDKsYhRNLUguKE5KLzLW K07MLS7NS9dLzs/dxAgM2tP/nvXvYLx7wPoQowAHoxIPr4XU5hAh1sSy4srcQ4ymQBsmMkuJ JucDYyOvJN7Q2MzIwtTE1NjI3NJMSZx3odTPYCGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2M IYbtGnP7T9bnunSsfPLa73vT9Od3ru3c4Ww5a9ZcoeeCsqbPz3TcX15n9+qn9TypE5Nk9RdV sBV66siVT6l+Kuq1xOfbNIPXHhOv6vhkTTjiLzX97sYtKxyj7iYfVNoZ1jS/sWe/WURpxfUP Z3RZlfmFhVfZdrz7w/q758BbUSvGV2dzo8yuKLEUZyQaajEXFScCAAUlXMFVAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xoO4/s80hBn2PBC2mPnzCZvHi3kUW i94FV9ksOv5+YbSYcX4fk8Wibf+ZLVaemMXswO6xc9Zddo9NqzrZPPq2rGL0OHnqCYvH501y AaxRDYw2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUB3 KCmUJeaUAoUCEouLlfTtME0IDXHTtYBpjND1DQmC6zEyQAMJaxgz/kybw1ywh6Pi0NfaBsZ1 7F2MnBwSAiYSF3dvYoawxSQu3FvP1sXIxSEkMJ1RYtfZN+wQThuTxLfZ58A62AT0JO5sO84E YosIyEq0PljDDFLELDCHUWLV4W+sIAlhAR+JOWu6gGwODhYBVYnvj+1ATF4Bd4lDe2whlslJ nDw2mXUCI/cCRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMEx8UxqB+PKBotDjAIcjEo8 vBZSm0OEWBPLiitzDzFKcDArifAeVwYK8aYkVlalFuXHF5XmpBYfYjQF2j2RWUo0OR8Yr3kl 8YbGJmZGlkbmhhZGxuZK4rxK9m0hQgLpiSWp2ampBalFMH1MHJxSDYxsZbu7m1h1b7CpXXjy 9fujHZEbfbXX/PcW09mx8eqzOZ8fxp5bqrTZyisq4NhpoZryzMdHpG6a7zyzr+WtQwfL35fa PQGZfO37JOOz5KOL/0iYl0+75p1T+NKsXu7qtiBGo43Nz8/PephUOMVh64GjvtYsi4M4OOvK 6xZLxG7Yav9hbem/8zuVWIozEg21mIuKEwHui2dPnwIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This is required in order to ensure that core system devices such as voltage regulators attached via I2C are available early in boot. Signed-off-by: Joonyoung Shim --- drivers/i2c/busses/i2c-exynos5.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index b29c750..18ca097 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -867,7 +867,17 @@ static struct platform_driver exynos5_i2c_driver = { }, }; -module_platform_driver(exynos5_i2c_driver); +static int __init exynos5_i2c_init_driver(void) +{ + return platform_driver_register(&exynos5_i2c_driver); +} +subsys_initcall(exynos5_i2c_init_driver); + +static void __exit exynos5_i2c_exit_driver(void) +{ + platform_driver_unregister(&exynos5_i2c_driver); +} +module_exit(exynos5_i2c_exit_driver); MODULE_DESCRIPTION("Exynos5 HS-I2C Bus driver"); MODULE_AUTHOR("Naveen Krishna Chatradhi, ");