From patchwork Thu Oct 16 07:52:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 400192 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 BF51A1400A0 for ; Thu, 16 Oct 2014 19:23:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750966AbaJPIXO (ORCPT ); Thu, 16 Oct 2014 04:23:14 -0400 Received: from mail-bl2on0120.outbound.protection.outlook.com ([65.55.169.120]:13056 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751033AbaJPIXI (ORCPT ); Thu, 16 Oct 2014 04:23:08 -0400 Received: from CO2PR03CA0014.namprd03.prod.outlook.com (10.141.194.141) by BY1PR0301MB0855.namprd03.prod.outlook.com (25.160.193.149) with Microsoft SMTP Server (TLS) id 15.0.1049.19; Thu, 16 Oct 2014 08:23:05 +0000 Received: from BN1BFFO11FD051.protection.gbl (2a01:111:f400:7c10::1:183) by CO2PR03CA0014.outlook.office365.com (2a01:111:e400:1414::13) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Thu, 16 Oct 2014 08:23:04 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD051.mail.protection.outlook.com (10.58.145.6) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Thu, 16 Oct 2014 08:23:03 +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 s9G8N2iU027296; Thu, 16 Oct 2014 01:23:02 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1003) id D9D3F1AE20C; Thu, 16 Oct 2014 15:52:46 +0800 (CST) From: Richard Zhu To: CC: , , , , Richard Zhu Subject: [PATCH v6 03/13] PCI: dra7xx: Change the func type of host init Date: Thu, 16 Oct 2014 15:52:33 +0800 Message-ID: <1413445963-24706-4-git-send-email-richard.zhu@freescale.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1413445963-24706-1-git-send-email-richard.zhu@freescale.com> References: <1413445963-24706-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)(199003)(189002)(92566001)(92726001)(50466002)(48376002)(97736003)(2351001)(68736004)(69596002)(84676001)(47776003)(64706001)(36756003)(20776003)(93916002)(77156001)(103686003)(81156004)(105586002)(107046002)(80022003)(229853001)(76482002)(95666004)(106466001)(46386002)(46102003)(19580405001)(6806004)(19580395003)(87286001)(76176999)(21056001)(44976005)(77096002)(120916001)(31966008)(104166001)(4396001)(85852003)(42186005)(50986999)(16796002)(102836001)(99396003)(45336002)(26826002)(62966002)(110136001)(33646002)(101416001)(88136002)(52956003)(85306004)(87936001)(89996001)(50226001)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB0855; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0855; X-Forefront-PRVS: 036614DD9C 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 = {