From patchwork Fri May 30 06:38:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4268831 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7B48BEEA7 for ; Fri, 30 May 2014 06:41:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9BF2201C0 for ; Fri, 30 May 2014 06:41:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE9892015A for ; Fri, 30 May 2014 06:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbaE3GlO (ORCPT ); Fri, 30 May 2014 02:41:14 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:32925 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752080AbaE3GlO (ORCPT ); Fri, 30 May 2014 02:41:14 -0400 Received: by mail-pd0-f175.google.com with SMTP id z10so623040pdj.6 for ; Thu, 29 May 2014 23:41:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=D1NwdWoaKjtfKftZgQbVq9bJBi3KOewOrrumg1nHY5Y=; b=U/LnOoDgDs+uG5DCtA9n9DbFP6DTrGyRwp/dj/kwq8LasAs7u4uHyvne1LSqCXyduZ Rkh7UZrtF+vX/lMdxNfUnuHFj4r8c/yBxCyoqpliUkR43LEv47xwfxbUF/XlVSaKsnfi uKFDiElEdJ315BluiCHw3zURJWD8BpksuA7MtBy1YkEgyjQBkKjQMrrDmbvG3B+acFEm zvSdHhOvMBOwstWc4kVPoF4svY7TQMiUwr7NEFocRBDbryHp1HJV+StICrDP5HeF1bcH vLIcS0s1mLxmuAQwkQXmFtIYkb2F9mBLDbEwvTZ8MHIrAIS/E3c/advzFYAAkPUR93wg 6hDQ== X-Gm-Message-State: ALoCoQkxXLnwVdwTl5+r2+3eSELJxH0oYnmg7AjlkTxDnqL+Zx9LEYWN9Wrs3d+AUnWOY0qqE+pL X-Received: by 10.66.65.138 with SMTP id x10mr15625531pas.17.1401432073868; Thu, 29 May 2014 23:41:13 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id yv7sm13996925pac.33.2014.05.29.23.41.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 May 2014 23:41:13 -0700 (PDT) From: Sachin Kamat To: linux-pci@vger.kernel.org Cc: r65037@freescale.com, shawn.guo@linaro.org, bhelgaas@google.com, sachin.kamat@linaro.org, Sean Cross Subject: [PATCH 1/1] PCI: imx6: Annotate imx6_add_pcie_port with __init Date: Fri, 30 May 2014 12:08:48 +0530 Message-Id: <1401431928-15096-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.5 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 imx6_add_pcie_port is called from probe which is annotated with __init. imx6_add_pcie_port calls dw_pcie_host_init which is also annotated with __init. Thus it makes sense to annotate imx6_add_pcie_port with __init. Signed-off-by: Sachin Kamat Cc: Sean Cross --- drivers/pci/host/pci-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index ee082509b0ba..facbf8faa353 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -487,7 +487,7 @@ static struct pcie_host_ops imx6_pcie_host_ops = { .host_init = imx6_pcie_host_init, }; -static int imx6_add_pcie_port(struct pcie_port *pp, +static int __init imx6_add_pcie_port(struct pcie_port *pp, struct platform_device *pdev) { int ret;