summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/gpu/drm/i2c/adv7511.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/gpu/drm/i2c/adv7511.c')
-rw-r--r--kernel/drivers/gpu/drm/i2c/adv7511.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/gpu/drm/i2c/adv7511.c b/kernel/drivers/gpu/drm/i2c/adv7511.c
index b728523e1..00416f23b 100644
--- a/kernel/drivers/gpu/drm/i2c/adv7511.c
+++ b/kernel/drivers/gpu/drm/i2c/adv7511.c
@@ -54,7 +54,7 @@ static struct adv7511 *encoder_to_adv7511(struct drm_encoder *encoder)
}
/* ADI recommended values for proper operation. */
-static const struct reg_default adv7511_fixed_registers[] = {
+static const struct reg_sequence adv7511_fixed_registers[] = {
{ 0x98, 0x03 },
{ 0x9a, 0xe0 },
{ 0x9c, 0x30 },
@@ -438,7 +438,7 @@ static int adv7511_irq_process(struct adv7511 *adv7511)
regmap_write(adv7511->regmap, ADV7511_REG_INT(0), irq0);
regmap_write(adv7511->regmap, ADV7511_REG_INT(1), irq1);
- if (irq0 & ADV7511_INT0_HDP)
+ if (irq0 & ADV7511_INT0_HDP && adv7511->encoder)
drm_helper_hpd_irq_event(adv7511->encoder->dev);
if (irq0 & ADV7511_INT0_EDID_READY || irq1 & ADV7511_INT1_DDC_ERROR) {