From patchwork Mon Jun 18 18:18:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 165573 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 A889FB7083 for ; Tue, 19 Jun 2012 04:18:58 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752343Ab2FRSS4 (ORCPT ); Mon, 18 Jun 2012 14:18:56 -0400 Received: from mail-wi0-f202.google.com ([209.85.212.202]:59577 "EHLO mail-wi0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249Ab2FRSSz (ORCPT ); Mon, 18 Jun 2012 14:18:55 -0400 Received: by wibhn6 with SMTP id hn6so116885wib.1 for ; Mon, 18 Jun 2012 11:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=QmG46AkrKF4SsewxlJS5pvpFtfRR1HpZxrxtkjrpJbk=; b=fXXGNrCVyOuJ9pKHDI0zK4B8Id6S8EiwOkL91/6TMuoKVb8IAip+3TCobSPD+SWqlZ rTE8SZGxsVppFYQ3ijZ5AWxcZKbgvzy5QOPqBqx0IPveIct2kiob+ZOqstrqBzHuJq7J WZW2R7uvz8wKLbp5UKI2sMmucfOlvbO4sy8vl5/c4wtCyBLA6Z0kAIZqxl+vLwO8NCZM YU/KVtslpYHVJldP4v9/AXcd57Cz8ebyGVDvNPmI7174VDAlFiAm7cxqXVLpmaMluTqm LLDieEtNzq8P5YyTaa36SuPy4pac5cpnJEVm733GTQGX7zPVqz/eZO30deaVJhf2jNUD ymXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=QmG46AkrKF4SsewxlJS5pvpFtfRR1HpZxrxtkjrpJbk=; b=U/NPifwbb+Yhu6vpVUzLPCqJgKBw1BCI/+fCLW/i/knmDWo8Qx9Kh2S3xvAuy5bizA dFt3emUI39KjB/b5hIhc5rvueb8FC/N1E4cCoCIF7XM29OG9dj1IgjNdXifOEHPBrV7u 0+ImX/6SpxULfFxinor39LO1sZhlFPlswMi0/IqEvR6zk4GAC0dRrbfV0aRKNE+Yuw0X yq+8tv1m+pZAa5azREbgSJrcrhCyq4GqIFvazUvohej5TzaHidHeyCHbi3/1llNToo1x ZLi9FjLmS890ihfMSk9103TwKQh/pl12/yjNt9yqAv47hPCwTlg/9X/fZywo4RH5Trr3 GOrg== Received: by 10.14.187.129 with SMTP id y1mr4829511eem.10.1340043534845; Mon, 18 Jun 2012 11:18:54 -0700 (PDT) Received: by 10.14.187.129 with SMTP id y1mr4829504eem.10.1340043534759; Mon, 18 Jun 2012 11:18:54 -0700 (PDT) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id v14si18394630eef.2.2012.06.18.11.18.54 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 18 Jun 2012 11:18:54 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id 8D98E20004E; Mon, 18 Jun 2012 11:18:54 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id E6FE7180181; Mon, 18 Jun 2012 11:18:53 -0700 (PDT) Subject: [PATCH] cris/PCI: remove pcibios_assign_resources() To: Mikael Starvik , Jesper Nilsson From: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-cris-kernel@axis.com Date: Mon, 18 Jun 2012 12:18:53 -0600 Message-ID: <20120618181853.6254.2635.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQk582Loldc8Vnvf35g3X/URdijauzpREr2qIr+318xwMSLzzDGDDLG89kzCPB5LxA8MMxbZJjrxi7npduJfxWv8CgDT9tbY+ymVCbgFqgF5hSfibZNX9EHesUPTNoDApaLP/CzJ968Q/E1gZm1n3YVgX3lVLw== Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org There's no caller of pcibios_assign_resources() in the tree. It is exported, so an out-of-tree module *could* call it, but no other arch exports pcibios_assign_resources(), so it would have to be a CRIS-specific module. I doubt such a caller exists. CC: Mikael Starvik CC: Jesper Nilsson Signed-off-by: Bjorn Helgaas --- arch/cris/arch-v32/drivers/pci/bios.c | 25 ------------------------- arch/cris/include/asm/pci.h | 1 - 2 files changed, 0 insertions(+), 26 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/cris/arch-v32/drivers/pci/bios.c b/arch/cris/arch-v32/drivers/pci/bios.c index bc0cfda..f748ced 100644 --- a/arch/cris/arch-v32/drivers/pci/bios.c +++ b/arch/cris/arch-v32/drivers/pci/bios.c @@ -102,28 +102,3 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) pcibios_enable_irq(dev); return 0; } - -int pcibios_assign_resources(void) -{ - struct pci_dev *dev = NULL; - int idx; - struct resource *r; - - while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { - int class = dev->class >> 8; - - /* Don't touch classless devices and host bridges */ - if (!class || class == PCI_CLASS_BRIDGE_HOST) - continue; - - for(idx=0; idx<6; idx++) { - r = &dev->resource[idx]; - - if (!r->start && r->end) - pci_assign_resource(dev, idx); - } - } - return 0; -} - -EXPORT_SYMBOL(pcibios_assign_resources); diff --git a/arch/cris/include/asm/pci.h b/arch/cris/include/asm/pci.h index 9f1cd56..146da90 100644 --- a/arch/cris/include/asm/pci.h +++ b/arch/cris/include/asm/pci.h @@ -19,7 +19,6 @@ extern unsigned long pci_mem_start; void pcibios_config_init(void); struct pci_bus * pcibios_scan_root(int bus); -int pcibios_assign_resources(void); void pcibios_set_master(struct pci_dev *dev); void pcibios_penalize_isa_irq(int irq);