From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758926Ab3ANVeE (ORCPT ); Mon, 14 Jan 2013 16:34:04 -0500 Received: from hydra.sisk.pl ([212.160.235.94]:40751 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758173Ab3ANVdf (ORCPT ); Mon, 14 Jan 2013 16:33:35 -0500 From: "Rafael J. Wysocki" To: ACPI Devel Maling List Cc: Bjorn Helgaas , LKML , Toshi Kani , Yinghai Lu , Jiang Liu , Taku Izumi Subject: [PATCH 0/5] ACPI: Rework acpi_bus_trim() Date: Mon, 14 Jan 2013 22:33:57 +0100 Message-ID: <3885603.ydrrB7OEKf@vostro.rjw.lan> User-Agent: KMail/4.9.5 (Linux/3.8.0-rc3+; KDE/4.9.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This series of patches changes the way acpi_bus_trim() works so that, eventually, it walks the namespace twice detaching (ACPI) drivers from device nodes being removed in the first pass and removing the device nodes in the second pass. The first two patches are just cleanups removing unused stuff: [1/5] Remove the ops field from struct acpi_device (unrelated to the rest). [2/5] Drop the second argument of acpi_device_unregister(). The next three patches actually rework acpi_bus_trim() in three steps: [3/5] Drop the second argument of acpi_bus_trim() (all callers pass 1 in there anyway. [4/5] Reimplement acpi_bus_trim() using acpi_walk_namespace(). [3/5] Make acpi_bus_trim() carry out two passes as described above. I'm aware of the fact that this will conflict with the patches that Yinghai posted a few days ago, but in my opinion the changes here are prerequisite for the Yinghai's patchset. Thanks, Rafael -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.