]> git.baikalelectronics.ru Git - kernel.git/commit
drm/connector: Check for destroy implementation
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:38 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:06 +0000 (10:46 +0200)
commit81767b6864beb4ad446e2a06ee72e39dec527768
treea4558aff54cf7c01fb8a914553c1e755b2f70d27
parent17e580aebffaec2172cbeeba583a6c6d29254d49
drm/connector: Check for destroy implementation

Connectors need to be cleaned up with a call to drm_connector_cleanup()
in their drm_connector_funcs.destroy implementation.

Let's check for this and complain if there's no such function.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-9-maxime@cerno.tech
drivers/gpu/drm/drm_connector.c