aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2025-02-25 06:35:46 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-28 02:03:53 +0000
commit21b0dc55bed6d9b5dd5d1ad22b75d9d1c7426bbc (patch)
treeb3a65f1dd8feb9debbb17c407d97535ba8c5e351 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentrust/faux: Add missing parent argument to Registration::new() (diff)
downloadkernel-21b0dc55bed6d9b5dd5d1ad22b75d9d1c7426bbc.tar.gz
kernel-21b0dc55bed6d9b5dd5d1ad22b75d9d1c7426bbc.zip
driver core: faux: only create the device if probe() succeeds
It's really hard to know if a faux device properly passes the callback to probe() without having to poke around in the faux_device structure and then clean up. Instead of having to have every user of the api do this logic, just do it in the faux device core itself. This makes the use of a custom probe() callback for a faux device much simpler overall. Suggested-by: Kurt Borja <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Reviewed-by: Kurt Borja <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/2025022545-unroasted-common-fa0e@gregkh Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions