drm/tests: helpers: Make sure the device is bound
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:40 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:55 +0000 (09:56 +0100)
commit57a84a97bbda3a4bb38534e9e37634fa9f58c7fc
treefbbb1d114310319687862b9571e2c9f5f0ef247b
parent0bdc2e28efd9e1b76297cc8f3c54cac3806803ff
drm/tests: helpers: Make sure the device is bound

The device managed resources are freed when the device is detached, so
it has to be bound in the first place.

Let's create a fake driver that we will bind to our fake device to
benefit from the device managed cleanups in our tests.

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