From patchwork Wed May 11 12:01:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9068801 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 5D7409F6FA for ; Wed, 11 May 2016 12:07:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC418201B9 for ; Wed, 11 May 2016 12:07:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0701320154 for ; Wed, 11 May 2016 12:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbcEKMH1 (ORCPT ); Wed, 11 May 2016 08:07:27 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:62236 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbcEKMCe (ORCPT ); Wed, 11 May 2016 08:02:34 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O700000UHG56150@mailout1.w1.samsung.com>; Wed, 11 May 2016 13:02:29 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-2a-57331f557a3e Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id D0.F1.05254.55F13375; Wed, 11 May 2016 13:02:29 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O7000965HG0RB60@eusync3.samsung.com>; Wed, 11 May 2016 13:02:29 +0100 (BST) From: Krzysztof Kozlowski To: Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz Subject: [PATCH 02/18] clk: samsung: exynos3250: Move platform driver and of_device_id to init section Date: Wed, 11 May 2016 14:01:58 +0200 Message-id: <1462968134-6085-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1462968134-6085-1-git-send-email-k.kozlowski@samsung.com> References: <1462968134-6085-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsVy+t/xq7qh8sbhBg/a5C02zljPavH6haFF /+PXzBabHl9jtfjYc4/V4vKuOWwWM87vY7K4eMrV4vCbdlaLH2e6WSxW7frD6MDt8f5GK7vH 5b5eJo+ds+6ye2xa1cnmsXlJvUffllWMHp83yQWwR3HZpKTmZJalFunbJXBlbNi/lbXgHUfF 1odbmRsYT7B3MXJySAiYSFw5+YoJwhaTuHBvPVsXIxeHkMBSRonHazqZIZxGJold98+CVbEJ GEtsXr4ErEpEoIlZ4sGuFmaQBLOAhcTWravBxgoLZEi8bVgM1sAioCrR2HgcKM7BwSvgJnH2 FBfENjmJk8cms4LYnALuErfXHWICKRECKnn2nXsCI+8CRoZVjKKppckFxUnpuYZ6xYm5xaV5 6XrJ+bmbGCGh+GUH4+JjVocYBTgYlXh4N1QZhQuxJpYVV+YeYpTgYFYS4bWXMw4X4k1JrKxK LcqPLyrNSS0+xCjNwaIkzjt31/sQIYH0xJLU7NTUgtQimCwTB6dUA6NbiuLCy/Ouz7P0ivu+ J8zaYP77vo9yZguCl932rpmwOikmg3t12nSTv4vnechblYrtPMxWk6Eod8PZrKYq88pGqXOL f/2ICJrHMc8rhN+tzdXl7n5vVX2fOW5GXFlR3tV2h9/mVlQGlupGhpyZundl/EHXlbc0vtw7 1nzsjIncxwqRuP51jEosxRmJhlrMRcWJAHWNmqNBAgAA 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=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The platform_driver and of_device_id structs can be moved to init section because they are referenced only from subsys_initcall-level function. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos3250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos3250.c b/drivers/clk/samsung/clk-exynos3250.c index 16575ee874cb..e26b04fea33b 100644 --- a/drivers/clk/samsung/clk-exynos3250.c +++ b/drivers/clk/samsung/clk-exynos3250.c @@ -1079,12 +1079,12 @@ static int __init exynos3250_cmu_isp_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id exynos3250_cmu_isp_of_match[] = { +static const struct of_device_id exynos3250_cmu_isp_of_match[] __initconst = { { .compatible = "samsung,exynos3250-cmu-isp", }, { /* sentinel */ } }; -static struct platform_driver exynos3250_cmu_isp_driver = { +static struct platform_driver exynos3250_cmu_isp_driver __initdata = { .driver = { .name = "exynos3250-cmu-isp", .of_match_table = exynos3250_cmu_isp_of_match,