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: 11864 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0DA3F23E42 for ; Fri, 28 Sep 2012 21:36:34 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id AE57BA180DC for ; Fri, 28 Sep 2012 21:36:33 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8011610iej.11 for ; Fri, 28 Sep 2012 14:36:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=YDw39IQnGeNWVTTNXqNEM+eWlkEtiuELLdD2H/O8kY8=; b=D73EpKJsp4bQs8ldMaLkiGi2jvI5U71CekfOyhxMEZN44hSb8e5ul8JEBqk/GNZbGL xVoadyY6keC/HkOoYqrNE1NXRWOXANhU5SsFcbTO3Um+7MxDjRoVvWebfdqDOnuk2OCk tK0iiaIewYLtqSS6sKsy3AF9wH4tMAnOAQjHuicA6HvhQ6aE9XzZaSRscqEzYc7Mpt7f mYIpFSVZCLwSKtitegqf0+65fKkvcHCxgMsoDn1Gn7bs080yaUlkb16Yud1gYx8I3dO7 0q4CNNphfTHVUJ3Zm9mdQBqxp6+sW2AA7UAju/4T1p9w5PCHY5wQVXG5vdlAYgp1gdhS lKmQ== Received: by 10.50.217.227 with SMTP id pb3mr25635igc.28.1348868193499; Fri, 28 Sep 2012 14:36:33 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp495004igc; Fri, 28 Sep 2012 14:36:32 -0700 (PDT) Received: by 10.216.134.97 with SMTP id r75mr4300076wei.127.1348868192105; Fri, 28 Sep 2012 14:36:32 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTPS id d6si12352543wec.25.2012.09.28.14.36.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Sep 2012 14:36:32 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: linux-kernel@vger.kernel.org, arm@kernel.org, Mark Langsdorf , Rob Herring , Jeff Garzik 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-Gm-Message-State: ALoCoQlZObw/pYZd959bHDtIDxc60/iMHpYMQFVbOlo8cbiaEdv9oOiedqD7GgJodbGSVRZn3FwK 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 --- 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;