[media] st-hva: fix a copy-and-paste variable name error
authorColin Ian King <colin.king@canonical.com>
Mon, 19 Sep 2016 06:19:28 +0000 (03:19 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:29:04 +0000 (13:29 -0200)
The second check for an error on hva->lmi_err_reg appears
to be a copy-and-paste error, it should be hva->emi_err_reg
instead.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jean-Christophe Trotin <jean-christophe.trotin@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/sti/hva/hva-hw.c

index cf2a8d884536729217d6c2a73c524cd78ae48234..68d625b412b6ce5e3a3c25920d516c3efbdad46e 100644 (file)
@@ -245,7 +245,7 @@ static irqreturn_t hva_hw_err_irq_thread(int irq, void *arg)
                ctx->hw_err = true;
        }
 
-       if (hva->lmi_err_reg) {
+       if (hva->emi_err_reg) {
                dev_err(dev, "%s     external memory interface error: 0x%08x\n",
                        ctx->name, hva->emi_err_reg);
                ctx->hw_err = true;