summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorKenneth Aafloy <devnull@localhost>2004-07-12 18:15:34 +0000
committerKenneth Aafloy <devnull@localhost>2004-07-12 18:15:34 +0000
commitbcfcd8a4a5a3ab5bac73391be855e5770379d504 (patch)
tree6682191b2ae7be87ef4867d5ae4d2c0c334e945b /linux/drivers/media/dvb/frontends
parent481ccf4d48f8ed8928ab6d2ef02b39a6349ac300 (diff)
downloadmediapointer-dvb-s2-bcfcd8a4a5a3ab5bac73391be855e5770379d504.tar.gz
mediapointer-dvb-s2-bcfcd8a4a5a3ab5bac73391be855e5770379d504.tar.bz2
- Properly lock the frontend module on open/close.
- Remove module ref count changes to av7110 and budget-core, as they did not do the right thing.
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdlb7.c3
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdmb7.c3
-rw-r--r--linux/drivers/media/dvb/frontends/at76c651.c3
-rw-r--r--linux/drivers/media/dvb/frontends/sp887x.c3
-rw-r--r--linux/drivers/media/dvb/frontends/stv0299.c3
-rw-r--r--linux/drivers/media/dvb/frontends/tda1004x.c8
-rw-r--r--linux/drivers/media/dvb/frontends/ves1x93.c3
7 files changed, 18 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdlb7.c b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
index 12f546d4c..d6171d6e8 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdlb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
@@ -659,7 +659,8 @@ static int attach_adapter(struct i2c_adapter *adapter)
goto out;
}
- ret = dvb_register_frontend_new (tdlb7_ioctl, state->dvb, (void*) state, &tdlb7_info);
+ ret = dvb_register_frontend_new(tdlb7_ioctl, state->dvb, state,
+ &tdlb7_info, THIS_MODULE);
if (ret) {
printk("tdlb7: registering frontend to dvb-core failed.\n");
release_firmware(fw);
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
index a5976bd0f..7956303ff 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
@@ -442,7 +442,8 @@ static int attach_adapter (struct i2c_adapter *adapter)
BUG_ON(!state->dvb);
- ret = dvb_register_frontend_new (tdmb7_ioctl, state->dvb, state, &tdmb7_info);
+ ret = dvb_register_frontend_new (tdmb7_ioctl, state->dvb, state,
+ &tdmb7_info, THIS_MODULE);
if (ret) {
i2c_detach_client(client);
kfree(state);
diff --git a/linux/drivers/media/dvb/frontends/at76c651.c b/linux/drivers/media/dvb/frontends/at76c651.c
index 237773b8d..7bd80c738 100644
--- a/linux/drivers/media/dvb/frontends/at76c651.c
+++ b/linux/drivers/media/dvb/frontends/at76c651.c
@@ -487,7 +487,8 @@ static int attach_adapter(struct i2c_adapter *adapter)
BUG_ON(!state->dvb);
- ret = dvb_register_frontend_new(at76c651_ioctl, state->dvb, state, &at76c651_info);
+ ret = dvb_register_frontend_new(at76c651_ioctl, state->dvb, state,
+ &at76c651_info, THIS_MODULE);
if (ret) {
i2c_detach_client(client);
kfree(client);
diff --git a/linux/drivers/media/dvb/frontends/sp887x.c b/linux/drivers/media/dvb/frontends/sp887x.c
index 5f7b9b87d..1f53e09c3 100644
--- a/linux/drivers/media/dvb/frontends/sp887x.c
+++ b/linux/drivers/media/dvb/frontends/sp887x.c
@@ -622,7 +622,8 @@ static int attach_adapter(struct i2c_adapter *adapter)
goto out;
}
- ret = dvb_register_frontend_new (sp887x_ioctl, state->dvb, (void*) state, &sp887x_info);
+ ret = dvb_register_frontend_new(sp887x_ioctl, state->dvb, state,
+ &sp887x_info, THIS_MODULE);
if (ret) {
printk("sp887x: registering frontend to dvb-core failed.\n");
goto out;
diff --git a/linux/drivers/media/dvb/frontends/stv0299.c b/linux/drivers/media/dvb/frontends/stv0299.c
index 3866ea2da..e4cd9a351 100644
--- a/linux/drivers/media/dvb/frontends/stv0299.c
+++ b/linux/drivers/media/dvb/frontends/stv0299.c
@@ -1395,7 +1395,8 @@ static int attach_adapter(struct i2c_adapter *adapter)
BUG_ON(!state->dvb);
- ret = dvb_register_frontend_new (uni0299_ioctl, state->dvb, (void*) state, &uni0299_info);
+ ret = dvb_register_frontend_new(uni0299_ioctl, state->dvb, state,
+ &uni0299_info, THIS_MODULE);
if (ret) {
i2c_detach_client(client);
kfree(client);
diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c
index e172e4805..9b265bde3 100644
--- a/linux/drivers/media/dvb/frontends/tda1004x.c
+++ b/linux/drivers/media/dvb/frontends/tda1004x.c
@@ -1503,7 +1503,9 @@ static int attach_adapter(struct i2c_adapter *adapter)
goto out;
}
- ret = dvb_register_frontend_new (tda1004x_ioctl, state->dvb, (void*) state, &tda10045h_info);
+ ret = dvb_register_frontend_new(tda1004x_ioctl, state->dvb,
+ state, &tda10045h_info,
+ THIS_MODULE);
break;
case FE_TYPE_TDA10046H:
state->dspCodeCounterReg = TDA10046H_CODE_CPT;
@@ -1516,7 +1518,9 @@ static int attach_adapter(struct i2c_adapter *adapter)
goto out;
}
- ret = dvb_register_frontend_new (tda1004x_ioctl, state->dvb, (void*) state, &tda10046h_info);
+ ret = dvb_register_frontend_new(tda1004x_ioctl, state->dvb,
+ state, &tda10046h_info,
+ THIS_MODULE);
break;
default:
BUG_ON(1);
diff --git a/linux/drivers/media/dvb/frontends/ves1x93.c b/linux/drivers/media/dvb/frontends/ves1x93.c
index 0bd02b698..5563e2578 100644
--- a/linux/drivers/media/dvb/frontends/ves1x93.c
+++ b/linux/drivers/media/dvb/frontends/ves1x93.c
@@ -638,7 +638,8 @@ static int attach_adapter(struct i2c_adapter *adapter)
BUG_ON(!state->dvb);
- ret = dvb_register_frontend_new (ves1x93_ioctl, state->dvb, (void*) state, &ves1x93_info);
+ ret = dvb_register_frontend_new(ves1x93_ioctl, state->dvb, state,
+ &ves1x93_info, THIS_MODULE);
if (ret) {
i2c_detach_client(client);
kfree(client);