]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i2c: tda998x: unregister the connector in the unbind function
authorLiviu Dudau (ARM) <Liviu.Dudau@arm.com>
Mon, 23 Nov 2015 15:52:40 +0000 (16:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Dec 2015 15:48:16 +0000 (15:48 +0000)
commitdebd15ced9937f1581096f36374c62b463e7df74
treef9057b0cb2c78d75f7b8f6b8645ae66b00a9ffb8
parent9525c4dd923f8ffe38818f86cee523a5f7b19617
drm/i2c: tda998x: unregister the connector in the unbind function

tda998x uses drm_connector_register() in the .bind function that
needs to be balanced with a drm_connector_unregister() in the .unbind.
Otherwise dangling sysfs entries are left behind and future rebinds
will fail.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c