V4L/DVB (8730): drx397xD: fix compilation error caused by changeset 71046dfb0853
authorMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 22 Aug 2008 16:31:59 +0000 (13:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:51 +0000 (09:36 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/drx397xD.c

index 0cf3af2f7da29f8a1155c810c7bc5fdb6e3b8604..b9ca5c8d2dd9400814f64566a24952b541126a0a 100644 (file)
@@ -1488,13 +1488,13 @@ struct dvb_frontend *drx397xD_attach(const struct drx397xD_config *config,
        memcpy(&state->config, config, sizeof(struct drx397xD_config));
 
        /* check if the demod is there */
-       if (RD16(s, 0x2410019) < 0)
+       if (RD16(state, 0x2410019) < 0)
                goto error;
 
        /* create dvb_frontend */
        memcpy(&state->frontend.ops, &drx397x_ops,
                        sizeof(struct dvb_frontend_ops));
-       state->frontend.demodulator_priv = s;
+       state->frontend.demodulator_priv = state;
 
        return &state->frontend;
 error: