From patchwork Fri Aug 17 23:36:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 178415 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 09B9B2C007E for ; Sat, 18 Aug 2012 14:17:54 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757544Ab2HQXgj (ORCPT ); Fri, 17 Aug 2012 19:36:39 -0400 Received: from mail-fa0-f74.google.com ([209.85.161.74]:51444 "EHLO mail-fa0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755445Ab2HQXgi (ORCPT ); Fri, 17 Aug 2012 19:36:38 -0400 Received: by faem1 with SMTP id m1so116777fae.1 for ; Fri, 17 Aug 2012 16:36:37 -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:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=YCV/4xXH/KOjt5/mUqTrr6buM9WMbHyJNlmFBlhP/O8=; b=O0k4lTWcLzA1zYYPEZ2DQ2DOKcD2wmvTaG0QEx9kniCx1kJgXD/wRD9GvAUaKNyh0a fOlvqSOgbeznGCEvMyrOEHhmUnsOAb0QZ+kVPdlW/lupsWtAC52jOzCuUlkXAsZDpyZk P/Be1SpTClZMDY1nUzQEJJ0OsUW76AyC872cxC4oVPnKRmN4GDDRGhWaQjUHNSRoSv98 KI7kHfd6DE6VjqQiKv8tR2WkjuIiBBr9UW/BoVOfpzEtMRwDHreaNxnpshiY6Ics/Xgi 51wVNFlFyUhtoE5q6hBy9LkvdOh+zVHVBFD+o+qAlj8dLqMxo85uTEcKrOAGypRuvtfB 4jcw== 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:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=YCV/4xXH/KOjt5/mUqTrr6buM9WMbHyJNlmFBlhP/O8=; b=gLdYe90Xbm2FHK5ER8Z+nXRpza9I0RoQ5TJezuSE0IhfL4NjUCRlEnjtW2ZFfanKG4 HnM15fbYWUM2PqZkbh64CtHV3b/ep/lK0NIOivn3mTk072gT5cm4UUA3O426Yj7qjoNj R7jqiz4YYoBEFjEKCxH5HRt4JCH9kPMCJsZEfcZCPKiuBRrBR6VMHjAwehOevrYsfvbQ tbJ4bgULovsgiJA/0kdMcOE7GOnZKyNWpyZn4chZ8SKSlrGV81UboyzGwJR2TG9dIhww W56Pz9mgauj1p5O8VyE/c4Tfk/pe1s/fB46WtMOvoW3FDezA026VqMVJtvtDYadOgc/Y 6gbg== Received: by 10.180.103.197 with SMTP id fy5mr705644wib.1.1345246597309; Fri, 17 Aug 2012 16:36:37 -0700 (PDT) Received: by 10.180.103.197 with SMTP id fy5mr705638wib.1.1345246597267; Fri, 17 Aug 2012 16:36:37 -0700 (PDT) Received: from hpza9.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id 46si11746951eed.1.2012.08.17.16.36.37 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 17 Aug 2012 16:36:37 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by hpza9.eem.corp.google.com (Postfix) with ESMTP id 168FD5C0050; Fri, 17 Aug 2012 16:36:37 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id 7A80B1801BB; Fri, 17 Aug 2012 16:36:36 -0700 (PDT) Subject: [PATCH v2 10/16] PCI: Rename local variables to conventional names To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-pcmcia@lists.infradead.org, Yinghai Lu , Kenji Kaneshige Date: Fri, 17 Aug 2012 17:36:36 -0600 Message-ID: <20120817233636.10973.70478.stgit@bhelgaas.mtv.corp.google.com> In-Reply-To: <20120817233100.10973.59521.stgit@bhelgaas.mtv.corp.google.com> References: <20120817233100.10973.59521.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkbsw3U1zO7sTBjw8ApIoITo2OwPLQkfn6O4e+KuTcBI/bH7DhKztLWXjSt6pseH95uiW9pzKZS3u97ktOnrjucfATuTKjmlv27P59qRx6KO56yQENDpwD7EQE664VuBI9R9wfVHwF+l2z5nF8MllEhDrz4DJ6Bn4HXVWaHtC2HCc1NFCjCaENV/mglv6Zie9zrQVJXwPKoHzzHYR73pTTCkxsQ6A== Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org "bus" is the conventional name for a "struct pci_bus *" variable. Signed-off-by: Bjorn Helgaas --- drivers/pci/remove.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 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/drivers/pci/remove.c b/drivers/pci/remove.c index 44f479f..c01baca 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c @@ -43,19 +43,19 @@ static void pci_destroy_dev(struct pci_dev *dev) pci_dev_put(dev); } -void pci_remove_bus(struct pci_bus *pci_bus) +void pci_remove_bus(struct pci_bus *bus) { - pci_proc_detach_bus(pci_bus); + pci_proc_detach_bus(bus); down_write(&pci_bus_sem); - list_del(&pci_bus->node); - pci_bus_release_busn_res(pci_bus); + list_del(&bus->node); + pci_bus_release_busn_res(bus); up_write(&pci_bus_sem); - if (!pci_bus->is_added) + if (!bus->is_added) return; - pci_remove_legacy_files(pci_bus); - device_unregister(&pci_bus->dev); + pci_remove_legacy_files(bus); + device_unregister(&bus->dev); } EXPORT_SYMBOL(pci_remove_bus);