aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-11-05 15:00:37 +0000
committerDamien Le Moal <[email protected]>2023-11-08 00:00:37 +0000
commit0b2771dd52570698c1b92e428f8bf2a224e7a2c3 (patch)
tree17a9e96d84163cb054b2589cd5c466107ba8d6fb /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentata: pata_falcon: Stop using module_platform_driver_probe() (diff)
downloadkernel-0b2771dd52570698c1b92e428f8bf2a224e7a2c3.tar.gz
kernel-0b2771dd52570698c1b92e428f8bf2a224e7a2c3.zip
ata: pata_gayle: Stop using module_platform_driver_probe()
On today's platforms the benefit of platform_driver_probe() isn't that relevant any more. It allows to drop some code after booting (or module loading) for .probe() and discard the .remove() function completely if the driver is built-in. This typically saves a few 100k. The downside of platform_driver_probe() is that the driver cannot be bound and unbound at runtime which is ancient and so slightly complicates testing. There are also thoughts to deprecate platform_driver_probe() because it adds some complexity in the driver core for little gain. Also many drivers don't use it correctly. This driver for example misses to mark the driver struct with __ref which is needed to suppress a (W=1) modpost warning. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions