The former is called by the latter. We return NULL because linuxkpi does not implement ACPI (pseudo?) devices associated to regular devices.
The amdgpu DRM driver started to use ACPI_COMPANION() in Linux 6.13.
This is part of the update of DRM drivers to Linux 6.13.
Sponsored by: The FreeBSD Foundation