From patchwork Wed Aug 26 12:28:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Holler X-Patchwork-Id: 7076881 Return-Path: X-Original-To: patchwork-linux-arm@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 3760A9F305 for ; Wed, 26 Aug 2015 12:44:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FEB020900 for ; Wed, 26 Aug 2015 12:44:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 614E12062E for ; Wed, 26 Aug 2015 12:44:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUa14-0004js-87; Wed, 26 Aug 2015 12:41:22 +0000 Received: from h1446028.stratoserver.net ([85.214.92.142] helo=mail.ahsoftware.de) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUa11-0004cf-3i for linux-arm-kernel@lists.infradead.org; Wed, 26 Aug 2015 12:41:19 +0000 Received: by mail.ahsoftware.de (Postfix, from userid 65534) id 0DC042C9C393; Wed, 26 Aug 2015 14:31:06 +0200 (CEST) Received: from wandq.ahsoftware (p4FC3641D.dip0.t-ipconnect.de [79.195.100.29]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id B9EA12C9C1CC for ; Wed, 26 Aug 2015 14:31:03 +0200 (CEST) Received: by wandq.ahsoftware (Postfix, from userid 65534) id 0DA4A9A5493; Wed, 26 Aug 2015 14:31:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from krabat.ahsoftware (unknown [192.168.207.2]) by wandq.ahsoftware (Postfix) with ESMTP id 283D49A53DA; Wed, 26 Aug 2015 12:29:00 +0000 (UTC) From: Alexander Holler To: linux-kernel@vger.kernel.org Subject: [PATCH 11/16] deps: WIP: generic: annotate some initcalls Date: Wed, 26 Aug 2015 14:28:23 +0200 Message-Id: <1440592108-3740-12-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1440592108-3740-1-git-send-email-holler@ahsoftware.de> References: <1440592108-3740-1-git-send-email-holler@ahsoftware.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150826_054119_330665_319951CC X-CRM114-Status: GOOD ( 13.70 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Russel King , Tomeu Vizoso , Greg KH , Grant Likely , Alexander Holler , Andrew Morton , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP WIP means Work In Progress. Change some generic drivers to offer annotated initcalls. Signed-off-by: Alexander Holler --- drivers/input/keyboard/gpio_keys.c | 2 +- drivers/misc/sram.c | 2 +- drivers/regulator/fixed.c | 3 ++- drivers/usb/phy/phy-generic.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index ddf4045..319bcf7 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -855,7 +855,7 @@ static void __exit gpio_keys_exit(void) platform_driver_unregister(&gpio_keys_device_driver); } -late_initcall(gpio_keys_init); +annotated_initcall(late, gpio_keys_init, gpio_keys_device_driver.driver); module_exit(gpio_keys_exit); MODULE_LICENSE("GPL"); diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index 15c33cc..eb662bd 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -243,4 +243,4 @@ static int __init sram_init(void) return platform_driver_register(&sram_driver); } -postcore_initcall(sram_init); +annotated_initcall(postcore, sram_init, sram_driver.driver); diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index ff62d69..ec35d10 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -221,7 +221,8 @@ static int __init regulator_fixed_voltage_init(void) { return platform_driver_register(®ulator_fixed_voltage_driver); } -subsys_initcall(regulator_fixed_voltage_init); +annotated_initcall(subsys, regulator_fixed_voltage_init, + regulator_fixed_voltage_driver.driver); static void __exit regulator_fixed_voltage_exit(void) { diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index deee68e..baf95d0 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -360,7 +360,7 @@ static int __init usb_phy_generic_init(void) { return platform_driver_register(&usb_phy_generic_driver); } -subsys_initcall(usb_phy_generic_init); +annotated_initcall(subsys, usb_phy_generic_init, usb_phy_generic_driver.driver); static void __exit usb_phy_generic_exit(void) {