From patchwork Sun Jun 7 11:15:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 6561171 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C2ABD9F326 for ; Sun, 7 Jun 2015 11:15:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0190205C7 for ; Sun, 7 Jun 2015 11:15:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0821220502 for ; Sun, 7 Jun 2015 11:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753042AbbFGLPp (ORCPT ); Sun, 7 Jun 2015 07:15:45 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:32997 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752670AbbFGLPn (ORCPT ); Sun, 7 Jun 2015 07:15:43 -0400 Received: by wgez8 with SMTP id z8so83532309wge.0 for ; Sun, 07 Jun 2015 04:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=Kkh1suaKG2aoKcyQXdyZpqimFSLlSYdE4whoBJzJXJ0=; b=xxPViX/tG+xpl0GlnYBUluPUBf7YIO2BXHhG+4/kWysFNFMMeJ1fFJmnB05qoFq5LN HHVcUJa2mkiGhwW3xsh/6osiFr/ucacrAErRVf9iwkVqelTDQxzpwZj2x+5cvVz0TuTF Wrk2R5rAW6HXIqkCW9uV5J6f/OoN7CrxD+9frAbuorI5l0xvmAA5JrVkPBOAd5bKoA57 jLXrKE4J3zVOTcQApqHTRJ+wOliYkBrzBPnb21zowY+u023tyiTJsmUbKHaW7A9SCPrQ mLJDdjl0FME/o3b/JYgZ0Fzn7nftmUdjNPHDbUbG4xDXz/orTEEea+DsGw7jk8RsYqwF k4mw== X-Received: by 10.180.100.74 with SMTP id ew10mr12834178wib.12.1433675742114; Sun, 07 Jun 2015 04:15:42 -0700 (PDT) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id wx9sm19029963wjb.6.2015.06.07.04.15.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jun 2015 04:15:41 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 1/2] bcma: make calls to PCI hostmode functions config-safe Date: Sun, 7 Jun 2015 13:15:30 +0200 Message-Id: <1433675731-16328-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 Signed-off-by: Rafa? Mi?ecki --- include/linux/bcma/bcma_driver_pci.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h index 5ba6918..9657f11 100644 --- a/include/linux/bcma/bcma_driver_pci.h +++ b/include/linux/bcma/bcma_driver_pci.h @@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) } #endif +#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); +#else +static inline int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev) +{ + return -ENOTSUPP; +} +static inline int bcma_core_pci_plat_dev_init(struct pci_dev *dev) +{ + return -ENOTSUPP; +} +#endif #endif /* LINUX_BCMA_DRIVER_PCI_H_ */