From patchwork Mon Apr 1 09:22:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 232687 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 A87AB2C010E for ; Mon, 1 Apr 2013 20:23:20 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758586Ab3DAJW7 (ORCPT ); Mon, 1 Apr 2013 05:22:59 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:27368 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757937Ab3DAJWk (ORCPT ); Mon, 1 Apr 2013 05:22:40 -0400 Received: from 172.24.2.119 (EHLO szxeml214-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AZK43757; Mon, 01 Apr 2013 17:22:38 +0800 (CST) Received: from SZXEML416-HUB.china.huawei.com (10.82.67.155) by szxeml214-edg.china.huawei.com (172.24.2.29) with Microsoft SMTP Server (TLS) id 14.1.323.7; Mon, 1 Apr 2013 17:22:32 +0800 Received: from localhost (10.135.76.69) by szxeml416-hub.china.huawei.com (10.82.67.155) with Microsoft SMTP Server id 14.1.323.7; Mon, 1 Apr 2013 17:22:25 +0800 From: Yijing Wang To: Bjorn Helgaas , Yinghai Lu CC: Kenji Kaneshige , , , Rafael , Hanjun Guo , , Yijing Wang Subject: [PATCH 2/3] PCI: acpiphp: remove unused function acpiphp_max_busnr Date: Mon, 1 Apr 2013 17:22:07 +0800 Message-ID: <1364808128-12792-2-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 In-Reply-To: <1364808128-12792-1-git-send-email-wangyijing@huawei.com> References: <1364808128-12792-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.135.76.69] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Clean up unuse function acpiphp_max_busnr() code. Signed-off-by: Yijing Wang --- drivers/pci/hotplug/acpiphp_glue.c | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 7d7ed3f..52e91bb 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -680,36 +680,6 @@ static int power_off_slot(struct acpiphp_slot *slot) return retval; } - - -/** - * acpiphp_max_busnr - return the highest reserved bus number under the given bus. - * @bus: bus to start search with - */ -static unsigned char acpiphp_max_busnr(struct pci_bus *bus) -{ - struct list_head *tmp; - unsigned char max, n; - - /* - * pci_bus_max_busnr will return the highest - * reserved busnr for all these children. - * that is equivalent to the bus->subordinate - * value. We don't want to use the parent's - * bus->subordinate value because it could have - * padding in it. - */ - max = bus->busn_res.start; - - list_for_each(tmp, &bus->children) { - n = pci_bus_max_busnr(pci_bus_b(tmp)); - if (n > max) - max = n; - } - return max; -} - - /** * acpiphp_bus_add - add a new bus to acpi subsystem * @func: acpiphp_func of the bridge