drm/tests: helpers: Switch to a platform_device
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:39 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:55 +0000 (09:56 +0100)
commit0bdc2e28efd9e1b76297cc8f3c54cac3806803ff
treebdb2233c96c76e887d58e2a9c28b43aec977aa59
parent9ecd8045bf64f8f277acea4bf35c14b369529f09
drm/tests: helpers: Switch to a platform_device

The device managed resources are ran if the device has bus, which is not
the case of a root_device.

Let's use a platform_device instead.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-8-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/tests/drm_kunit_helpers.c