Factor out common code to amdgpu_probe()

Keep the distinct pci/platform screen management in the separate probe
entry point and fold the rest into a single function.

v2: Rebase

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
12 jobs for sent/drm-device in 3 minutes and 8 seconds (queued for 20 seconds)
Status Job ID Name Coverage
  Docker Image
passed #508545
debian-testing

00:00:22

 
  Build
passed #508548
xserver-1.13

00:00:28

passed #508549
xserver-1.14

00:00:38

passed #508550
xserver-1.15

00:00:30

passed #508551
xserver-1.16

00:00:32

passed #508552
xserver-1.17

00:00:38

passed #508553
xserver-1.18

00:00:36

passed #508554
xserver-1.18-clang

00:00:37

passed #508555
xserver-1.19

00:00:35

passed #508556
xserver-1.19-clang

00:00:38

passed #508546
xserver-1.20

00:00:43

passed #508547
xserver-1.20-clang

00:00:38