Re: device_unregister() for PCI host bridge removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 26, 2013 at 3:00 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:

>
>     acpi_pci_root_remove
>       pci_stop_root_bus
>         device_del(&host_bridge->dev)
>       pci_remove_root_bus
>         put_device(&host_bridge->dev)
>
> This seems unnecessarily difficult to analyze.  It would be better if
> we had symmetric device_register()/device_unregister() paths, or if
> that can't be done, symmetric device_add()/device_del() paths.
>
> Don't bother to generate a quick patch to just replace
> device_register() with explicit calls to device_initialize() and
> device_add(), though.  Maybe someday we can clean up that and more.
> Anyway, thanks for fixing my confusion.

Yes, Jiang Liu at some pointer to split device_register() to
device_add and put device.
but is get dropped ...
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux