catch up to recent lg3303 changes

This commit is contained in:
jmcneill 2011-07-15 10:48:30 +00:00
parent 13e60a5238
commit 428431c0a7
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: emdtv.c,v 1.2 2011/07/13 14:36:29 jakllsch Exp $ */
/* $NetBSD: emdtv.c,v 1.3 2011/07/15 10:48:30 jmcneill Exp $ */
/*-
* Copyright (c) 2008, 2011 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: emdtv.c,v 1.2 2011/07/13 14:36:29 jakllsch Exp $");
__KERNEL_RCSID(0, "$NetBSD: emdtv.c,v 1.3 2011/07/15 10:48:30 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -164,9 +164,6 @@ emdtv_detach(device_t self, int flags)
"couldn't stop stream: %s\n", usbd_errstr(status));
}
if (sc->sc_lg3303)
lg3303_close(sc->sc_lg3303);
emdtv_i2c_detach(sc, flags);
return 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: emdtv_dtv.c,v 1.2 2011/07/13 14:34:45 jakllsch Exp $ */
/* $NetBSD: emdtv_dtv.c,v 1.3 2011/07/15 10:48:30 jmcneill Exp $ */
/*-
* Copyright (c) 2008, 2011 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: emdtv_dtv.c,v 1.2 2011/07/13 14:34:45 jakllsch Exp $");
__KERNEL_RCSID(0, "$NetBSD: emdtv_dtv.c,v 1.3 2011/07/15 10:48:30 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -201,7 +201,7 @@ emdtv_dtv_open(void *priv, int flags)
case EMDTV_DEMOD_LG3303:
if (sc->sc_lg3303 == NULL) {
sc->sc_lg3303 = lg3303_open(sc->sc_dev,
&sc->sc_i2c, 0x1c);
&sc->sc_i2c, 0x1c, 0);
}
if (sc->sc_lg3303 == NULL) {
aprint_error_dev(sc->sc_dev, "couldn't open lg3303\n");