From patchwork Thu Oct 16 07:52:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 5088791 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 C68C0C11AC for ; Thu, 16 Oct 2014 08:23:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAAD420122 for ; Thu, 16 Oct 2014 08:23:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CE40201CD for ; Thu, 16 Oct 2014 08:23:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751302AbaJPIXL (ORCPT ); Thu, 16 Oct 2014 04:23:11 -0400 Received: from mail-bn1bn0101.outbound.protection.outlook.com ([157.56.110.101]:53017 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750891AbaJPIXH (ORCPT ); Thu, 16 Oct 2014 04:23:07 -0400 Received: from CH1PR03CA003.namprd03.prod.outlook.com (10.255.156.148) by BN3PR0301MB0851.namprd03.prod.outlook.com (25.160.154.149) with Microsoft SMTP Server (TLS) id 15.0.1054.13; Thu, 16 Oct 2014 08:23:04 +0000 Received: from BL2FFO11FD035.protection.gbl (10.255.156.132) by CH1PR03CA003.outlook.office365.com (10.255.156.148) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Thu, 16 Oct 2014 08:23:03 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD035.mail.protection.outlook.com (10.173.161.131) 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 s9G8N2R4027297; Thu, 16 Oct 2014 01:23:02 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1003) id E15D41AE20D; Thu, 16 Oct 2014 15:52:46 +0800 (CST) From: Richard Zhu To: CC: , , , , Richard Zhu Subject: [PATCH v6 04/13] PCI: exynos: Change the func type of host init Date: Thu, 16 Oct 2014 15:52:34 +0800 Message-ID: <1413445963-24706-5-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)(77096002)(21056001)(95666004)(50226001)(4396001)(105586002)(110136001)(103686003)(81156004)(106466001)(2351001)(229853001)(107046002)(88136002)(89996001)(50466002)(47776003)(20776003)(92566001)(575784001)(104166001)(93916002)(52956003)(85852003)(42186005)(46386002)(64706001)(92726001)(97736003)(45336002)(120916001)(50986999)(84676001)(19580395003)(19580405001)(80022003)(36756003)(102836001)(46102003)(101416001)(26826002)(44976005)(6806004)(69596002)(68736004)(48376002)(87286001)(76482002)(62966002)(33646002)(77156001)(87936001)(99396003)(76176999)(16796002)(85306004)(31966008)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB0851; 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:BN3PR0301MB0851; 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=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 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-exynos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c index c5d0ca3..606d0a9 100644 --- a/drivers/pci/host/pci-exynos.c +++ b/drivers/pci/host/pci-exynos.c @@ -494,10 +494,12 @@ static int exynos_pcie_link_up(struct pcie_port *pp) return 0; } -static void exynos_pcie_host_init(struct pcie_port *pp) +static int exynos_pcie_host_init(struct pcie_port *pp) { exynos_pcie_establish_link(pp); exynos_pcie_enable_interrupts(pp); + + return 0; } static struct pcie_host_ops exynos_pcie_host_ops = {