diff options
Diffstat (limited to 'drivers/gpu/drm/i2c/tda998x_drv.c')
-rw-r--r-- | drivers/gpu/drm/i2c/tda998x_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index cd3f0873bbdd..9e67a7b4e3a4 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c | |||
@@ -1600,8 +1600,7 @@ fail: | |||
1600 | /* if encoder_init fails, the encoder slave is never registered, | 1600 | /* if encoder_init fails, the encoder slave is never registered, |
1601 | * so cleanup here: | 1601 | * so cleanup here: |
1602 | */ | 1602 | */ |
1603 | if (priv->cec) | 1603 | i2c_unregister_device(priv->cec); |
1604 | i2c_unregister_device(priv->cec); | ||
1605 | return -ENXIO; | 1604 | return -ENXIO; |
1606 | } | 1605 | } |
1607 | 1606 | ||