From patchwork Thu Oct 16 07:52:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 5088841 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 625C29F30B for ; Thu, 16 Oct 2014 08:23:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 961C4201C7 for ; Thu, 16 Oct 2014 08:23:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7ABFA201CE for ; Thu, 16 Oct 2014 08:23:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751164AbaJPIXQ (ORCPT ); Thu, 16 Oct 2014 04:23:16 -0400 Received: from mail-by2on0132.outbound.protection.outlook.com ([207.46.100.132]:36224 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751106AbaJPIXJ (ORCPT ); Thu, 16 Oct 2014 04:23:09 -0400 Received: from BN3PR0301CA0071.namprd03.prod.outlook.com (25.160.152.167) by DM2PR0301MB0863.namprd03.prod.outlook.com (25.160.215.149) with Microsoft SMTP Server (TLS) id 15.0.1049.19; Thu, 16 Oct 2014 08:23:04 +0000 Received: from BN1BFFO11FD027.protection.gbl (2a01:111:f400:7c10::1:104) by BN3PR0301CA0071.outlook.office365.com (2a01:111:e400:401e::39) 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 BN1BFFO11FD027.mail.protection.outlook.com (10.58.144.90) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Thu, 16 Oct 2014 08:23:04 +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 s9G8N2cl027308; Thu, 16 Oct 2014 01:23:03 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1003) id E8C211AE20E; Thu, 16 Oct 2014 15:52:46 +0800 (CST) From: Richard Zhu To: CC: , , , , Richard Zhu Subject: [PATCH v6 05/13] PCI: spear: Change the func type of host init Date: Thu, 16 Oct 2014 15:52:35 +0800 Message-ID: <1413445963-24706-6-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)(189002)(199003)(48376002)(50466002)(68736004)(99396003)(69596002)(19580395003)(81156004)(106466001)(92566001)(95666004)(46386002)(42186005)(101416001)(76482002)(46102003)(105586002)(103686003)(19580405001)(97736003)(229853001)(2351001)(4396001)(77156001)(107046002)(44976005)(80022003)(92726001)(52956003)(36756003)(50226001)(89996001)(6806004)(21056001)(110136001)(102836001)(20776003)(47776003)(64706001)(85852003)(88136002)(50986999)(33646002)(76176999)(87286001)(87936001)(62966002)(93916002)(120916001)(45336002)(16796002)(77096002)(31966008)(104166001)(85306004)(84676001)(26826002)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0863; 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:DM2PR0301MB0863; 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 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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/pcie-spear13xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 6dea9e4..b8fd76b 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -258,10 +258,12 @@ static int spear13xx_pcie_link_up(struct pcie_port *pp) return 0; } -static void spear13xx_pcie_host_init(struct pcie_port *pp) +static int spear13xx_pcie_host_init(struct pcie_port *pp) { spear13xx_pcie_establish_link(pp); spear13xx_pcie_enable_interrupts(pp); + + return 0; } static struct pcie_host_ops spear13xx_pcie_host_ops = {