V4L/DVB (10363): gspca - spca500: Abnormal error message when starting ClickSmart310.
authorJean-Francois Moine <moinejf@free.fr>
Thu, 15 Jan 2009 12:34:55 +0000 (09:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:32 +0000 (12:42 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/spca500.c

index 62c12fa105707f93213be41e49651cf99e90aa7b..f44613095d2e31fb17a6e09bc35a4b455c93f9f4 100644 (file)
@@ -711,7 +711,8 @@ static int sd_start(struct gspca_dev *gspca_dev)
                write_vector(gspca_dev, spca500_visual_defaults);
                spca500_setmode(gspca_dev, xmult, ymult);
                /* enable drop packet */
-               reg_w(gspca_dev, 0x00, 0x850a, 0x0001);
+               err = reg_w(gspca_dev, 0x00, 0x850a, 0x0001);
+               if (err < 0)
                        PDEBUG(D_ERR, "failed to enable drop packet");
                reg_w(gspca_dev, 0x00, 0x8880, 3);
                err = spca50x_setup_qtable(gspca_dev,