Bjoern A. Zeeb 1fac2cb4d6 LinuxKPI: enhance PCI bits for DRM
In pci_domain_nr() directly return the domain which got set in
lkpifill_pci_dev() in all cases.  This was missed between D27550
and 105a37cac76b971f7a94409fbdc4f508a7e97fa0 .

In order to implement pci_dev_put() harmonize further code
(which was started in the aforementioned commit) and add kobj
related bits (through the now common lkpifill_pci_dev() code)
to the DRM specific calls without adding the DRM allocated
pci devices to the pci_devices list.
Add a release for the lkpinew_pci_dev() (DRM) case so freeing
will work.
This allows the DRM created devices to use the normal kobj/refcount
logic and work with, e.g., pci_dev_put().
(For a slightly more detailed code walk see the review).

Sponsored-by:	The FreeBSD Foundation
Obtained-from:	bz_iwlwifi (partially)
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D28188
2021-01-28 16:23:19 +00:00
..
2021-01-02 19:57:58 -07:00
2021-01-15 11:57:04 -04:00
2021-01-28 16:23:19 +00:00
2021-01-21 21:41:27 -08:00
2020-12-23 14:37:05 -04:00
2021-01-15 20:09:55 +01:00
2021-01-27 21:52:41 -08:00
2020-11-04 12:07:33 +00:00
2021-01-25 21:50:37 +00:00