From patchwork Mon Oct 20 02:19:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 400946 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2DCA014008C for ; Mon, 20 Oct 2014 13:50:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751829AbaJTCty (ORCPT ); Sun, 19 Oct 2014 22:49:54 -0400 Received: from [65.55.169.138] ([65.55.169.138]:4086 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751569AbaJTCtx (ORCPT ); Sun, 19 Oct 2014 22:49:53 -0400 Received: from CO2PR03CA0020.namprd03.prod.outlook.com (10.141.194.147) by BN3PR0301MB0850.namprd03.prod.outlook.com (25.160.154.148) with Microsoft SMTP Server (TLS) id 15.0.1054.13; Mon, 20 Oct 2014 02:49:40 +0000 Received: from BL2FFO11FD056.protection.gbl (2a01:111:f400:7c09::119) by CO2PR03CA0020.outlook.office365.com (2a01:111:e400:1414::19) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Mon, 20 Oct 2014 02:49:39 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD056.mail.protection.outlook.com (10.173.161.184) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Mon, 20 Oct 2014 02:49:38 +0000 Received: from shlinux1.ap.freescale.net (shlinux1.ap.freescale.net [10.192.225.216]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s9K2nULT019729; Sun, 19 Oct 2014 19:49:33 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1003) id DFB661AE20D; Mon, 20 Oct 2014 10:19:17 +0800 (CST) From: Richard Zhu To: CC: , , , , Richard Zhu Subject: [PATCH v7 03/13] PCI: dra7xx: Change the func type of host init Date: Mon, 20 Oct 2014 10:19:06 +0800 Message-ID: <1413771556-32212-4-git-send-email-richard.zhu@freescale.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1413771556-32212-1-git-send-email-richard.zhu@freescale.com> References: <1413771556-32212-1-git-send-email-richard.zhu@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(428002)(189002)(199003)(97736003)(92726001)(50986999)(103686003)(105586002)(92566001)(48376002)(50466002)(62966002)(85306004)(47776003)(20776003)(93916002)(36756003)(95666004)(106466001)(229853001)(81156004)(84676001)(2351001)(107046002)(76176999)(77156001)(89996001)(21056001)(6806004)(87936001)(64706001)(88136002)(104166001)(87286001)(33646002)(4396001)(69596002)(19580395003)(19580405001)(68736004)(44976005)(50226001)(77096002)(46386002)(45336002)(46102003)(110136001)(42186005)(26826002)(99396003)(120916001)(101416001)(85852003)(52956003)(80022003)(76482002)(102836001)(16796002)(31966008)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB0850; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB0850; X-Forefront-PRVS: 03706074BC Received-SPF: None (protection.outlook.com: shlinux1.ap.freescale.net does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is 192.88.158.2) smtp.mailfrom=r65037@shlinux1.ap.freescale.net; X-OriginatorOrg: freescale.com Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org In order to avoid compilation warning, change the func type of host init from void to int. Signed-off-by: Richard Zhu --- drivers/pci/host/pci-dra7xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-dra7xx.c b/drivers/pci/host/pci-dra7xx.c index 52b34fe..7b11968 100644 --- a/drivers/pci/host/pci-dra7xx.c +++ b/drivers/pci/host/pci-dra7xx.c @@ -141,13 +141,15 @@ static void dra7xx_pcie_enable_interrupts(struct pcie_port *pp) LEG_EP_INTERRUPTS); } -static void dra7xx_pcie_host_init(struct pcie_port *pp) +static int dra7xx_pcie_host_init(struct pcie_port *pp) { dw_pcie_setup_rc(pp); dra7xx_pcie_establish_link(pp); if (IS_ENABLED(CONFIG_PCI_MSI)) dw_pcie_msi_init(pp); dra7xx_pcie_enable_interrupts(pp); + + return 0; } static struct pcie_host_ops dra7xx_pcie_host_ops = {