diff options
author | Holger Waechtler <devnull@localhost> | 2002-11-20 12:24:47 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-11-20 12:24:47 +0000 |
commit | 35c8ad22537cee1dd85f275ca04ccb5dcfc7cd33 (patch) | |
tree | 1cf5c9599a636a3fe8ef364e9fd58b55d1ef8ada /linux/drivers/media/dvb/frontends | |
parent | d77b0aeb7b054799d4c560b6e3412de81f7df4b3 (diff) | |
download | mediapointer-dvb-s2-35c8ad22537cee1dd85f275ca04ccb5dcfc7cd33.tar.gz mediapointer-dvb-s2-35c8ad22537cee1dd85f275ca04ccb5dcfc7cd33.tar.bz2 |
load microcode only once at attach time. Patch by Juergen Paitz <peitz@snafu.de>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/alps_tdlb7.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdlb7.c b/linux/drivers/media/dvb/frontends/alps_tdlb7.c index d5700041e..732fdffed 100644 --- a/linux/drivers/media/dvb/frontends/alps_tdlb7.c +++ b/linux/drivers/media/dvb/frontends/alps_tdlb7.c @@ -247,14 +247,6 @@ int sp8870_init (struct dvb_i2c_bus *i2c) sp8870_readreg(i2c,0x0F00); sp8870_readreg(i2c,0x0200); - if (loadcode) { - dprintk("%s: loading mcfile '%s' !\n", __FUNCTION__, mcfile); - if (sp8870_load_code(i2c)==0) - dprintk("%s: microcode loaded!\n", __FUNCTION__); - }else{ - dprintk("%s: without loading mcfile!\n", __FUNCTION__); - } - return 0; } @@ -384,6 +376,14 @@ int tdlb7_attach (struct dvb_i2c_bus *i2c) if (i2c->xfer (i2c, &msg, 1) != 1) return -ENODEV; + if (loadcode) { + dprintk("%s: loading mcfile '%s' !\n", __FUNCTION__, mcfile); + if (sp8870_load_code(i2c)==0) + dprintk("%s: microcode loaded!\n", __FUNCTION__); + } else { + dprintk("%s: without loading mcfile!\n", __FUNCTION__); + } + dvb_register_frontend (tdlb7_ioctl, i2c, NULL, &tdlb7_info); return 0; |