From patchwork Fri Sep 28 21:36:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1526341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 22112DF283 for ; Fri, 28 Sep 2012 21:38:22 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1THiEk-0001o4-MI; Fri, 28 Sep 2012 21:36:42 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1THiEU-0001kW-3O for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 21:36:27 +0000 Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MPIxM-1TM5wZ1i1g-005BXf; Fri, 28 Sep 2012 23:36:19 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/12] ata: mark probe function as __devinit rather than __init Date: Fri, 28 Sep 2012 23:36:07 +0200 Message-Id: <1348868177-21205-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1348868177-21205-1-git-send-email-arnd@arndb.de> References: <1348868177-21205-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:piGqQJntyoEnzCUbir+vn5p77MPamPP0OvHXsZ1OVUi 8gH82Y9XKK6WFejQbgJkm7ejeDdqJvdzgsSOb8fz6GZn3A7c2l mk3R+MtgmleEPw0HDR3JEELEolCpsl+jafYbnDYb+20Hev9qfl WFWkQMpbZbU8jrmsktcZcGO3sMULGR3sFm7s4b2xfXQApyM7Yd q8dIIS0pvotTFrGmZ/5fHcFHOGccV5TJz4zmpnQ+vzl86eMpHb FYRTmp23FBLLJgFThgQ982EFXA5eagSK94F/fvfeRIdZkNofpw +h3ITwg/VLiZccpSfnL1JQl3iwuanVsoxYOk4i0TDlR5EJ3R55 FKr6T4PS7BbTNjpsN0hDajTadfPIgag3BmINsczUImPSrKQf/0 dWE7ZoIOr+Vcw== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.171 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: arm@kernel.org, Rob Herring , linux-kernel@vger.kernel.org, Mark Langsdorf , Jeff Garzik X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Functions for hotplugging must be marked as __devinit so they do not get discarded, as pointed out by a build time warning from modpost. Cc: Mark Langsdorf Cc: Rob Herring Cc: Jeff Garzik Acked-by: Mark Langsdorf --- drivers/ata/sata_highbank.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 0d7c4c2..36a141a 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -260,7 +260,7 @@ static const struct of_device_id ahci_of_match[] = { }; MODULE_DEVICE_TABLE(of, ahci_of_match); -static int __init ahci_highbank_probe(struct platform_device *pdev) +static int __devinit ahci_highbank_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct ahci_host_priv *hpriv;