aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/bt8xx/bt878.c11
-rw-r--r--drivers/media/pci/bt8xx/bttv-cards.c34
-rw-r--r--drivers/media/pci/bt8xx/bttv-driver.c9
-rw-r--r--drivers/media/pci/bt8xx/bttv-i2c.c6
-rw-r--r--drivers/media/pci/bt8xx/bttv-input.c4
-rw-r--r--drivers/media/pci/bt8xx/dvb-bt8xx.c7
-rw-r--r--drivers/media/pci/cx18/cx18-driver.c14
-rw-r--r--drivers/media/pci/cx23885/cx23885-core.c8
-rw-r--r--drivers/media/pci/cx25821/cx25821-core.c8
-rw-r--r--drivers/media/pci/cx88/cx88-alsa.c19
-rw-r--r--drivers/media/pci/cx88/cx88-mpeg.c8
-rw-r--r--drivers/media/pci/cx88/cx88-video.c8
-rw-r--r--drivers/media/pci/ddbridge/ddbridge-core.c9
-rw-r--r--drivers/media/pci/dm1105/dm1105.c20
-rw-r--r--drivers/media/pci/ivtv/ivtv-driver.c9
-rw-r--r--drivers/media/pci/mantis/hopper_cards.c9
-rw-r--r--drivers/media/pci/mantis/mantis_cards.c9
-rw-r--r--drivers/media/pci/mantis/mantis_dvb.c4
-rw-r--r--drivers/media/pci/mantis/mantis_i2c.c2
-rw-r--r--drivers/media/pci/mantis/mantis_pci.c2
-rw-r--r--drivers/media/pci/meye/meye.c7
-rw-r--r--drivers/media/pci/ngene/ngene-cards.c4
-rw-r--r--drivers/media/pci/ngene/ngene-core.c5
-rw-r--r--drivers/media/pci/ngene/ngene.h5
-rw-r--r--drivers/media/pci/pluto2/pluto2.c25
-rw-r--r--drivers/media/pci/pt1/pt1.c7
-rw-r--r--drivers/media/pci/saa7134/saa7134-core.c10
-rw-r--r--drivers/media/pci/saa7134/saa7134.h2
-rw-r--r--drivers/media/pci/saa7164/saa7164-core.c8
-rw-r--r--drivers/media/pci/sta2x11/sta2x11_vip.c8
-rw-r--r--drivers/media/pci/ttpci/av7110.c8
-rw-r--r--drivers/media/pci/ttpci/av7110_ir.c4
-rw-r--r--drivers/media/pci/zoran/zoran_card.c20
-rw-r--r--drivers/media/pci/zoran/zoran_driver.c2
34 files changed, 151 insertions, 164 deletions
diff --git a/drivers/media/pci/bt8xx/bt878.c b/drivers/media/pci/bt8xx/bt878.c
index b34fa95185e4..66eb0baab0e9 100644
--- a/drivers/media/pci/bt8xx/bt878.c
+++ b/drivers/media/pci/bt8xx/bt878.c
@@ -391,7 +391,7 @@ EXPORT_SYMBOL(bt878_device_control);
391 .driver_data = (unsigned long) name \ 391 .driver_data = (unsigned long) name \
392 } 392 }
393 393
394static struct pci_device_id bt878_pci_tbl[] __devinitdata = { 394static struct pci_device_id bt878_pci_tbl[] = {
395 BROOKTREE_878_DEVICE(0x0071, 0x0101, "Nebula Electronics DigiTV"), 395 BROOKTREE_878_DEVICE(0x0071, 0x0101, "Nebula Electronics DigiTV"),
396 BROOKTREE_878_DEVICE(0x1461, 0x0761, "AverMedia AverTV DVB-T 761"), 396 BROOKTREE_878_DEVICE(0x1461, 0x0761, "AverMedia AverTV DVB-T 761"),
397 BROOKTREE_878_DEVICE(0x11bd, 0x001c, "Pinnacle PCTV Sat"), 397 BROOKTREE_878_DEVICE(0x11bd, 0x001c, "Pinnacle PCTV Sat"),
@@ -410,7 +410,7 @@ static struct pci_device_id bt878_pci_tbl[] __devinitdata = {
410 410
411MODULE_DEVICE_TABLE(pci, bt878_pci_tbl); 411MODULE_DEVICE_TABLE(pci, bt878_pci_tbl);
412 412
413static const char * __devinit card_name(const struct pci_device_id *id) 413static const char * card_name(const struct pci_device_id *id)
414{ 414{
415 return id->driver_data ? (const char *)id->driver_data : "Unknown"; 415 return id->driver_data ? (const char *)id->driver_data : "Unknown";
416} 416}
@@ -419,8 +419,7 @@ static const char * __devinit card_name(const struct pci_device_id *id)
419/* PCI device handling */ 419/* PCI device handling */
420/***********************/ 420/***********************/
421 421
422static int __devinit bt878_probe(struct pci_dev *dev, 422static int bt878_probe(struct pci_dev *dev, const struct pci_device_id *pci_id)
423 const struct pci_device_id *pci_id)
424{ 423{
425 int result = 0; 424 int result = 0;
426 unsigned char lat; 425 unsigned char lat;
@@ -529,7 +528,7 @@ static int __devinit bt878_probe(struct pci_dev *dev,
529 return result; 528 return result;
530} 529}
531 530
532static void __devexit bt878_remove(struct pci_dev *pci_dev) 531static void bt878_remove(struct pci_dev *pci_dev)
533{ 532{
534 u8 command; 533 u8 command;
535 struct bt878 *bt = pci_get_drvdata(pci_dev); 534 struct bt878 *bt = pci_get_drvdata(pci_dev);
@@ -573,7 +572,7 @@ static struct pci_driver bt878_pci_driver = {
573 .name = "bt878", 572 .name = "bt878",
574 .id_table = bt878_pci_tbl, 573 .id_table = bt878_pci_tbl,
575 .probe = bt878_probe, 574 .probe = bt878_probe,
576 .remove = __devexit_p(bt878_remove), 575 .remove = bt878_remove,
577}; 576};
578 577
579/*******************************/ 578/*******************************/
diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c
index 38952faaffda..c4c59175e52c 100644
--- a/drivers/media/pci/bt8xx/bttv-cards.c
+++ b/drivers/media/pci/bt8xx/bttv-cards.c
@@ -87,7 +87,7 @@ static int tea5757_read(struct bttv *btv);
87static int tea5757_write(struct bttv *btv, int value); 87static int tea5757_write(struct bttv *btv, int value);
88static void identify_by_eeprom(struct bttv *btv, 88static void identify_by_eeprom(struct bttv *btv,
89 unsigned char eeprom_data[256]); 89 unsigned char eeprom_data[256]);
90static int __devinit pvr_boot(struct bttv *btv); 90static int pvr_boot(struct bttv *btv);
91 91
92/* config variables */ 92/* config variables */
93static unsigned int triton1; 93static unsigned int triton1;
@@ -151,7 +151,7 @@ static struct CARD {
151 unsigned id; 151 unsigned id;
152 int cardnr; 152 int cardnr;
153 char *name; 153 char *name;
154} cards[] __devinitdata = { 154} cards[] = {
155 { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, 155 { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" },
156 { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, 156 { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" },
157 { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, 157 { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" },
@@ -2837,7 +2837,7 @@ static unsigned char eeprom_data[256];
2837/* 2837/*
2838 * identify card 2838 * identify card
2839 */ 2839 */
2840void __devinit bttv_idcard(struct bttv *btv) 2840void bttv_idcard(struct bttv *btv)
2841{ 2841{
2842 unsigned int gpiobits; 2842 unsigned int gpiobits;
2843 int i,type; 2843 int i,type;
@@ -3235,7 +3235,7 @@ static void bttv_reset_audio(struct bttv *btv)
3235} 3235}
3236 3236
3237/* initialization part one -- before registering i2c bus */ 3237/* initialization part one -- before registering i2c bus */
3238void __devinit bttv_init_card1(struct bttv *btv) 3238void bttv_init_card1(struct bttv *btv)
3239{ 3239{
3240 switch (btv->c.type) { 3240 switch (btv->c.type) {
3241 case BTTV_BOARD_HAUPPAUGE: 3241 case BTTV_BOARD_HAUPPAUGE:
@@ -3267,7 +3267,7 @@ void __devinit bttv_init_card1(struct bttv *btv)
3267} 3267}
3268 3268
3269/* initialization part two -- after registering i2c bus */ 3269/* initialization part two -- after registering i2c bus */
3270void __devinit bttv_init_card2(struct bttv *btv) 3270void bttv_init_card2(struct bttv *btv)
3271{ 3271{
3272 btv->tuner_type = UNSET; 3272 btv->tuner_type = UNSET;
3273 3273
@@ -3571,7 +3571,7 @@ no_audio:
3571 3571
3572 3572
3573/* initialize the tuner */ 3573/* initialize the tuner */
3574void __devinit bttv_init_tuner(struct bttv *btv) 3574void bttv_init_tuner(struct bttv *btv)
3575{ 3575{
3576 int addr = ADDR_UNSET; 3576 int addr = ADDR_UNSET;
3577 3577
@@ -3635,7 +3635,7 @@ static void modtec_eeprom(struct bttv *btv)
3635 } 3635 }
3636} 3636}
3637 3637
3638static void __devinit hauppauge_eeprom(struct bttv *btv) 3638static void hauppauge_eeprom(struct bttv *btv)
3639{ 3639{
3640 struct tveeprom tv; 3640 struct tveeprom tv;
3641 3641
@@ -3709,8 +3709,7 @@ static int terratec_active_radio_upgrade(struct bttv *btv)
3709#define BTTV_ALT_DCLK 0x100000 3709#define BTTV_ALT_DCLK 0x100000
3710#define BTTV_ALT_NCONFIG 0x800000 3710#define BTTV_ALT_NCONFIG 0x800000
3711 3711
3712static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, 3712static int pvr_altera_load(struct bttv *btv, const u8 *micro, u32 microlen)
3713 u32 microlen)
3714{ 3713{
3715 u32 n; 3714 u32 n;
3716 u8 bits; 3715 u8 bits;
@@ -3747,7 +3746,7 @@ static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro,
3747 return 0; 3746 return 0;
3748} 3747}
3749 3748
3750static int __devinit pvr_boot(struct bttv *btv) 3749static int pvr_boot(struct bttv *btv)
3751{ 3750{
3752 const struct firmware *fw_entry; 3751 const struct firmware *fw_entry;
3753 int rc; 3752 int rc;
@@ -3767,7 +3766,7 @@ static int __devinit pvr_boot(struct bttv *btv)
3767/* ----------------------------------------------------------------------- */ 3766/* ----------------------------------------------------------------------- */
3768/* some osprey specific stuff */ 3767/* some osprey specific stuff */
3769 3768
3770static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) 3769static void osprey_eeprom(struct bttv *btv, const u8 ee[256])
3771{ 3770{
3772 int i; 3771 int i;
3773 u32 serial = 0; 3772 u32 serial = 0;
@@ -3898,7 +3897,7 @@ static int tuner_1_table[] = {
3898 TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ 3897 TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */
3899 TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; 3898 TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL};
3900 3899
3901static void __devinit avermedia_eeprom(struct bttv *btv) 3900static void avermedia_eeprom(struct bttv *btv)
3902{ 3901{
3903 int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; 3902 int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0;
3904 3903
@@ -3960,7 +3959,7 @@ u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits)
3960 * Hauppauge: pin 5 3959 * Hauppauge: pin 5
3961 * Voodoo: pin 20 3960 * Voodoo: pin 20
3962 */ 3961 */
3963static void __devinit boot_msp34xx(struct bttv *btv, int pin) 3962static void boot_msp34xx(struct bttv *btv, int pin)
3964{ 3963{
3965 int mask = (1 << pin); 3964 int mask = (1 << pin);
3966 3965
@@ -3983,11 +3982,10 @@ static void __devinit boot_msp34xx(struct bttv *btv, int pin)
3983 * used by Alessandro Rubini in his pxc200 3982 * used by Alessandro Rubini in his pxc200
3984 * driver, but using BTTV functions */ 3983 * driver, but using BTTV functions */
3985 3984
3986static void __devinit init_PXC200(struct bttv *btv) 3985static void init_PXC200(struct bttv *btv)
3987{ 3986{
3988 static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, 3987 static int vals[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, 0x01, 0x02,
3989 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 3988 0x03, 0x04, 0x05, 0x06, 0x00 };
3990 0x00 };
3991 unsigned int i; 3989 unsigned int i;
3992 int tmp; 3990 int tmp;
3993 u32 val; 3991 u32 val;
@@ -4851,7 +4849,7 @@ void __init bttv_check_chipset(void)
4851 } 4849 }
4852} 4850}
4853 4851
4854int __devinit bttv_handle_chipset(struct bttv *btv) 4852int bttv_handle_chipset(struct bttv *btv)
4855{ 4853{
4856 unsigned char command; 4854 unsigned char command;
4857 4855
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
index de6f41f19187..45e5d0661b60 100644
--- a/drivers/media/pci/bt8xx/bttv-driver.c
+++ b/drivers/media/pci/bt8xx/bttv-driver.c
@@ -4199,7 +4199,7 @@ static void bttv_unregister_video(struct bttv *btv)
4199} 4199}
4200 4200
4201/* register video4linux devices */ 4201/* register video4linux devices */
4202static int __devinit bttv_register_video(struct bttv *btv) 4202static int bttv_register_video(struct bttv *btv)
4203{ 4203{
4204 if (no_overlay > 0) 4204 if (no_overlay > 0)
4205 pr_notice("Overlay support disabled\n"); 4205 pr_notice("Overlay support disabled\n");
@@ -4265,8 +4265,7 @@ static void pci_set_command(struct pci_dev *dev)
4265#endif 4265#endif
4266} 4266}
4267 4267
4268static int __devinit bttv_probe(struct pci_dev *dev, 4268static int bttv_probe(struct pci_dev *dev, const struct pci_device_id *pci_id)
4269 const struct pci_device_id *pci_id)
4270{ 4269{
4271 int result; 4270 int result;
4272 unsigned char lat; 4271 unsigned char lat;
@@ -4454,7 +4453,7 @@ fail0:
4454 return result; 4453 return result;
4455} 4454}
4456 4455
4457static void __devexit bttv_remove(struct pci_dev *pci_dev) 4456static void bttv_remove(struct pci_dev *pci_dev)
4458{ 4457{
4459 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); 4458 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev);
4460 struct bttv *btv = to_bttv(v4l2_dev); 4459 struct bttv *btv = to_bttv(v4l2_dev);
@@ -4598,7 +4597,7 @@ static struct pci_driver bttv_pci_driver = {
4598 .name = "bttv", 4597 .name = "bttv",
4599 .id_table = bttv_pci_tbl, 4598 .id_table = bttv_pci_tbl,
4600 .probe = bttv_probe, 4599 .probe = bttv_probe,
4601 .remove = __devexit_p(bttv_remove), 4600 .remove = bttv_remove,
4602#ifdef CONFIG_PM 4601#ifdef CONFIG_PM
4603 .suspend = bttv_suspend, 4602 .suspend = bttv_suspend,
4604 .resume = bttv_resume, 4603 .resume = bttv_resume,
diff --git a/drivers/media/pci/bt8xx/bttv-i2c.c b/drivers/media/pci/bt8xx/bttv-i2c.c
index 580c8e682392..5039b8826e0a 100644
--- a/drivers/media/pci/bt8xx/bttv-i2c.c
+++ b/drivers/media/pci/bt8xx/bttv-i2c.c
@@ -99,7 +99,7 @@ static int bttv_bit_getsda(void *data)
99 return state; 99 return state;
100} 100}
101 101
102static struct i2c_algo_bit_data __devinitdata bttv_i2c_algo_bit_template = { 102static struct i2c_algo_bit_data bttv_i2c_algo_bit_template = {
103 .setsda = bttv_bit_setsda, 103 .setsda = bttv_bit_setsda,
104 .setscl = bttv_bit_setscl, 104 .setscl = bttv_bit_setscl,
105 .getsda = bttv_bit_getsda, 105 .getsda = bttv_bit_getsda,
@@ -312,7 +312,7 @@ int bttv_I2CWrite(struct bttv *btv, unsigned char addr, unsigned char b1,
312} 312}
313 313
314/* read EEPROM content */ 314/* read EEPROM content */
315void __devinit bttv_readee(struct bttv *btv, unsigned char *eedata, int addr) 315void bttv_readee(struct bttv *btv, unsigned char *eedata, int addr)
316{ 316{
317 memset(eedata, 0, 256); 317 memset(eedata, 0, 256);
318 if (0 != btv->i2c_rc) 318 if (0 != btv->i2c_rc)
@@ -347,7 +347,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
347} 347}
348 348
349/* init + register i2c adapter */ 349/* init + register i2c adapter */
350int __devinit init_bttv_i2c(struct bttv *btv) 350int init_bttv_i2c(struct bttv *btv)
351{ 351{
352 strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE); 352 strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE);
353 353
diff --git a/drivers/media/pci/bt8xx/bttv-input.c b/drivers/media/pci/bt8xx/bttv-input.c
index ef4c7cd41982..04207a799055 100644
--- a/drivers/media/pci/bt8xx/bttv-input.c
+++ b/drivers/media/pci/bt8xx/bttv-input.c
@@ -368,7 +368,7 @@ static int get_key_pv951(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
368} 368}
369 369
370/* Instantiate the I2C IR receiver device, if present */ 370/* Instantiate the I2C IR receiver device, if present */
371void __devinit init_bttv_i2c_ir(struct bttv *btv) 371void init_bttv_i2c_ir(struct bttv *btv)
372{ 372{
373 const unsigned short addr_list[] = { 373 const unsigned short addr_list[] = {
374 0x1a, 0x18, 0x64, 0x30, 0x71, 374 0x1a, 0x18, 0x64, 0x30, 0x71,
@@ -411,7 +411,7 @@ void __devinit init_bttv_i2c_ir(struct bttv *btv)
411 return; 411 return;
412} 412}
413 413
414int __devexit fini_bttv_i2c(struct bttv *btv) 414int fini_bttv_i2c(struct bttv *btv)
415{ 415{
416 if (0 != btv->i2c_rc) 416 if (0 != btv->i2c_rc)
417 return 0; 417 return 0;
diff --git a/drivers/media/pci/bt8xx/dvb-bt8xx.c b/drivers/media/pci/bt8xx/dvb-bt8xx.c
index 81fab9adc1ca..d407244fd1bc 100644
--- a/drivers/media/pci/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/pci/bt8xx/dvb-bt8xx.c
@@ -118,7 +118,8 @@ static int is_pci_slot_eq(struct pci_dev* adev, struct pci_dev* bdev)
118 return 0; 118 return 0;
119} 119}
120 120
121static struct bt878 __devinit *dvb_bt8xx_878_match(unsigned int bttv_nr, struct pci_dev* bttv_pci_dev) 121static struct bt878 *dvb_bt8xx_878_match(unsigned int bttv_nr,
122 struct pci_dev* bttv_pci_dev)
122{ 123{
123 unsigned int card_nr; 124 unsigned int card_nr;
124 125
@@ -720,7 +721,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
720 } 721 }
721} 722}
722 723
723static int __devinit dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) 724static int dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type)
724{ 725{
725 int result; 726 int result;
726 727
@@ -811,7 +812,7 @@ err_unregister_adaptor:
811 return result; 812 return result;
812} 813}
813 814
814static int __devinit dvb_bt8xx_probe(struct bttv_sub_device *sub) 815static int dvb_bt8xx_probe(struct bttv_sub_device *sub)
815{ 816{
816 struct dvb_bt8xx_card *card; 817 struct dvb_bt8xx_card *card;
817 struct pci_dev* bttv_pci_dev; 818 struct pci_dev* bttv_pci_dev;
diff --git a/drivers/media/pci/cx18/cx18-driver.c b/drivers/media/pci/cx18/cx18-driver.c
index 039133d692e3..613e5ae7d5ca 100644
--- a/drivers/media/pci/cx18/cx18-driver.c
+++ b/drivers/media/pci/cx18/cx18-driver.c
@@ -53,7 +53,7 @@ int (*cx18_ext_init)(struct cx18 *);
53EXPORT_SYMBOL(cx18_ext_init); 53EXPORT_SYMBOL(cx18_ext_init);
54 54
55/* add your revision and whatnot here */ 55/* add your revision and whatnot here */
56static struct pci_device_id cx18_pci_tbl[] __devinitdata = { 56static struct pci_device_id cx18_pci_tbl[] = {
57 {PCI_VENDOR_ID_CX, PCI_DEVICE_ID_CX23418, 57 {PCI_VENDOR_ID_CX, PCI_DEVICE_ID_CX23418,
58 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 58 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
59 {0,} 59 {0,}
@@ -691,7 +691,7 @@ done:
691 cx->card_i2c = cx->card->i2c; 691 cx->card_i2c = cx->card->i2c;
692} 692}
693 693
694static int __devinit cx18_create_in_workq(struct cx18 *cx) 694static int cx18_create_in_workq(struct cx18 *cx)
695{ 695{
696 snprintf(cx->in_workq_name, sizeof(cx->in_workq_name), "%s-in", 696 snprintf(cx->in_workq_name, sizeof(cx->in_workq_name), "%s-in",
697 cx->v4l2_dev.name); 697 cx->v4l2_dev.name);
@@ -703,7 +703,7 @@ static int __devinit cx18_create_in_workq(struct cx18 *cx)
703 return 0; 703 return 0;
704} 704}
705 705
706static void __devinit cx18_init_in_work_orders(struct cx18 *cx) 706static void cx18_init_in_work_orders(struct cx18 *cx)
707{ 707{
708 int i; 708 int i;
709 for (i = 0; i < CX18_MAX_IN_WORK_ORDERS; i++) { 709 for (i = 0; i < CX18_MAX_IN_WORK_ORDERS; i++) {
@@ -718,7 +718,7 @@ static void __devinit cx18_init_in_work_orders(struct cx18 *cx)
718 No assumptions on the card type may be made here (see cx18_init_struct2 718 No assumptions on the card type may be made here (see cx18_init_struct2
719 for that). 719 for that).
720 */ 720 */
721static int __devinit cx18_init_struct1(struct cx18 *cx) 721static int cx18_init_struct1(struct cx18 *cx)
722{ 722{
723 int ret; 723 int ret;
724 724
@@ -775,7 +775,7 @@ static int __devinit cx18_init_struct1(struct cx18 *cx)
775 775
776/* Second initialization part. Here the card type has been 776/* Second initialization part. Here the card type has been
777 autodetected. */ 777 autodetected. */
778static void __devinit cx18_init_struct2(struct cx18 *cx) 778static void cx18_init_struct2(struct cx18 *cx)
779{ 779{
780 int i; 780 int i;
781 781
@@ -892,8 +892,8 @@ static void cx18_init_subdevs(struct cx18 *cx)
892 cx->sd_extmux = cx18_find_hw(cx, cx->card->hw_muxer); 892 cx->sd_extmux = cx18_find_hw(cx, cx->card->hw_muxer);
893} 893}
894 894
895static int __devinit cx18_probe(struct pci_dev *pci_dev, 895static int cx18_probe(struct pci_dev *pci_dev,
896 const struct pci_device_id *pci_id) 896 const struct pci_device_id *pci_id)
897{ 897{
898 int retval = 0; 898 int retval = 0;
899 int i; 899 int i;
diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c
index 065ecd54bda3..f0416a668b4c 100644
--- a/drivers/media/pci/cx23885/cx23885-core.c
+++ b/drivers/media/pci/cx23885/cx23885-core.c
@@ -2086,8 +2086,8 @@ void cx23885_gpio_enable(struct cx23885_dev *dev, u32 mask, int asoutput)
2086 /* TODO: 23-19 */ 2086 /* TODO: 23-19 */
2087} 2087}
2088 2088
2089static int __devinit cx23885_initdev(struct pci_dev *pci_dev, 2089static int cx23885_initdev(struct pci_dev *pci_dev,
2090 const struct pci_device_id *pci_id) 2090 const struct pci_device_id *pci_id)
2091{ 2091{
2092 struct cx23885_dev *dev; 2092 struct cx23885_dev *dev;
2093 int err; 2093 int err;
@@ -2167,7 +2167,7 @@ fail_free:
2167 return err; 2167 return err;
2168} 2168}
2169 2169
2170static void __devexit cx23885_finidev(struct pci_dev *pci_dev) 2170static void cx23885_finidev(struct pci_dev *pci_dev)
2171{ 2171{
2172 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); 2172 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev);
2173 struct cx23885_dev *dev = to_cx23885(v4l2_dev); 2173 struct cx23885_dev *dev = to_cx23885(v4l2_dev);
@@ -2210,7 +2210,7 @@ static struct pci_driver cx23885_pci_driver = {
2210 .name = "cx23885", 2210 .name = "cx23885",
2211 .id_table = cx23885_pci_tbl, 2211 .id_table = cx23885_pci_tbl,
2212 .probe = cx23885_initdev, 2212 .probe = cx23885_initdev,
2213 .remove = __devexit_p(cx23885_finidev), 2213 .remove = cx23885_finidev,
2214 /* TODO */ 2214 /* TODO */
2215 .suspend = NULL, 2215 .suspend = NULL,
2216 .resume = NULL, 2216 .resume = NULL,
diff --git a/drivers/media/pci/cx25821/cx25821-core.c b/drivers/media/pci/cx25821/cx25821-core.c
index f11f6f07e915..1884e2cc35e9 100644
--- a/drivers/media/pci/cx25821/cx25821-core.c
+++ b/drivers/media/pci/cx25821/cx25821-core.c
@@ -1361,8 +1361,8 @@ struct cx25821_dev *cx25821_dev_get(struct pci_dev *pci)
1361} 1361}
1362EXPORT_SYMBOL(cx25821_dev_get); 1362EXPORT_SYMBOL(cx25821_dev_get);
1363 1363
1364static int __devinit cx25821_initdev(struct pci_dev *pci_dev, 1364static int cx25821_initdev(struct pci_dev *pci_dev,
1365 const struct pci_device_id *pci_id) 1365 const struct pci_device_id *pci_id)
1366{ 1366{
1367 struct cx25821_dev *dev; 1367 struct cx25821_dev *dev;
1368 int err = 0; 1368 int err = 0;
@@ -1433,7 +1433,7 @@ fail_free:
1433 return err; 1433 return err;
1434} 1434}
1435 1435
1436static void __devexit cx25821_finidev(struct pci_dev *pci_dev) 1436static void cx25821_finidev(struct pci_dev *pci_dev)
1437{ 1437{
1438 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); 1438 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev);
1439 struct cx25821_dev *dev = get_cx25821(v4l2_dev); 1439 struct cx25821_dev *dev = get_cx25821(v4l2_dev);
@@ -1478,7 +1478,7 @@ static struct pci_driver cx25821_pci_driver = {
1478 .name = "cx25821", 1478 .name = "cx25821",
1479 .id_table = cx25821_pci_tbl, 1479 .id_table = cx25821_pci_tbl,
1480 .probe = cx25821_initdev, 1480 .probe = cx25821_initdev,
1481 .remove = __devexit_p(cx25821_finidev), 1481 .remove = cx25821_finidev,
1482 /* TODO */ 1482 /* TODO */
1483 .suspend = NULL, 1483 .suspend = NULL,
1484 .resume = NULL, 1484 .resume = NULL,
diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c
index d2de1a913e19..27d62623274b 100644
--- a/drivers/media/pci/cx88/cx88-alsa.c
+++ b/drivers/media/pci/cx88/cx88-alsa.c
@@ -540,7 +540,7 @@ static struct snd_pcm_ops snd_cx88_pcm_ops = {
540/* 540/*
541 * create a PCM device 541 * create a PCM device
542 */ 542 */
543static int __devinit snd_cx88_pcm(snd_cx88_card_t *chip, int device, const char *name) 543static int snd_cx88_pcm(snd_cx88_card_t *chip, int device, const char *name)
544{ 544{
545 int err; 545 int err;
546 struct snd_pcm *pcm; 546 struct snd_pcm *pcm;
@@ -753,7 +753,7 @@ static struct snd_kcontrol_new snd_cx88_alc_switch = {
753 * Only boards with eeprom and byte 1 at eeprom=1 have it 753 * Only boards with eeprom and byte 1 at eeprom=1 have it
754 */ 754 */
755 755
756static const struct pci_device_id cx88_audio_pci_tbl[] __devinitdata = { 756static const struct pci_device_id cx88_audio_pci_tbl[] = {
757 {0x14f1,0x8801,PCI_ANY_ID,PCI_ANY_ID,0,0,0}, 757 {0x14f1,0x8801,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
758 {0x14f1,0x8811,PCI_ANY_ID,PCI_ANY_ID,0,0,0}, 758 {0x14f1,0x8811,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
759 {0, } 759 {0, }
@@ -792,10 +792,9 @@ static void snd_cx88_dev_free(struct snd_card * card)
792 */ 792 */
793 793
794static int devno; 794static int devno;
795static int __devinit snd_cx88_create(struct snd_card *card, 795static int snd_cx88_create(struct snd_card *card, struct pci_dev *pci,
796 struct pci_dev *pci, 796 snd_cx88_card_t **rchip,
797 snd_cx88_card_t **rchip, 797 struct cx88_core **core_ptr)
798 struct cx88_core **core_ptr)
799{ 798{
800 snd_cx88_card_t *chip; 799 snd_cx88_card_t *chip;
801 struct cx88_core *core; 800 struct cx88_core *core;
@@ -862,8 +861,8 @@ static int __devinit snd_cx88_create(struct snd_card *card,
862 return 0; 861 return 0;
863} 862}
864 863
865static int __devinit cx88_audio_initdev(struct pci_dev *pci, 864static int cx88_audio_initdev(struct pci_dev *pci,
866 const struct pci_device_id *pci_id) 865 const struct pci_device_id *pci_id)
867{ 866{
868 struct snd_card *card; 867 struct snd_card *card;
869 snd_cx88_card_t *chip; 868 snd_cx88_card_t *chip;
@@ -931,7 +930,7 @@ error:
931/* 930/*
932 * ALSA destructor 931 * ALSA destructor
933 */ 932 */
934static void __devexit cx88_audio_finidev(struct pci_dev *pci) 933static void cx88_audio_finidev(struct pci_dev *pci)
935{ 934{
936 struct cx88_audio_dev *card = pci_get_drvdata(pci); 935 struct cx88_audio_dev *card = pci_get_drvdata(pci);
937 936
@@ -950,7 +949,7 @@ static struct pci_driver cx88_audio_pci_driver = {
950 .name = "cx88_audio", 949 .name = "cx88_audio",
951 .id_table = cx88_audio_pci_tbl, 950 .id_table = cx88_audio_pci_tbl,
952 .probe = cx88_audio_initdev, 951 .probe = cx88_audio_initdev,
953 .remove = __devexit_p(cx88_audio_finidev), 952 .remove = cx88_audio_finidev,
954}; 953};
955 954
956/**************************************************************************** 955/****************************************************************************
diff --git a/drivers/media/pci/cx88/cx88-mpeg.c b/drivers/media/pci/cx88/cx88-mpeg.c
index d46b008a46b8..c9d3182f79d5 100644
--- a/drivers/media/pci/cx88/cx88-mpeg.c
+++ b/drivers/media/pci/cx88/cx88-mpeg.c
@@ -791,8 +791,8 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)
791} 791}
792 792
793/* ----------------------------------------------------------- */ 793/* ----------------------------------------------------------- */
794static int __devinit cx8802_probe(struct pci_dev *pci_dev, 794static int cx8802_probe(struct pci_dev *pci_dev,
795 const struct pci_device_id *pci_id) 795 const struct pci_device_id *pci_id)
796{ 796{
797 struct cx8802_dev *dev; 797 struct cx8802_dev *dev;
798 struct cx88_core *core; 798 struct cx88_core *core;
@@ -840,7 +840,7 @@ static int __devinit cx8802_probe(struct pci_dev *pci_dev,
840 return err; 840 return err;
841} 841}
842 842
843static void __devexit cx8802_remove(struct pci_dev *pci_dev) 843static void cx8802_remove(struct pci_dev *pci_dev)
844{ 844{
845 struct cx8802_dev *dev; 845 struct cx8802_dev *dev;
846 846
@@ -898,7 +898,7 @@ static struct pci_driver cx8802_pci_driver = {
898 .name = "cx88-mpeg driver manager", 898 .name = "cx88-mpeg driver manager",
899 .id_table = cx8802_pci_tbl, 899 .id_table = cx8802_pci_tbl,
900 .probe = cx8802_probe, 900 .probe = cx8802_probe,
901 .remove = __devexit_p(cx8802_remove), 901 .remove = cx8802_remove,
902}; 902};
903 903
904static int __init cx8802_init(void) 904static int __init cx8802_init(void)
diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c
index 05171457bf28..bc78354262ac 100644
--- a/drivers/media/pci/cx88/cx88-video.c
+++ b/drivers/media/pci/cx88/cx88-video.c
@@ -1696,8 +1696,8 @@ static void cx8800_unregister_video(struct cx8800_dev *dev)
1696 } 1696 }
1697} 1697}
1698 1698
1699static int __devinit cx8800_initdev(struct pci_dev *pci_dev, 1699static int cx8800_initdev(struct pci_dev *pci_dev,
1700 const struct pci_device_id *pci_id) 1700 const struct pci_device_id *pci_id)
1701{ 1701{
1702 struct cx8800_dev *dev; 1702 struct cx8800_dev *dev;
1703 struct cx88_core *core; 1703 struct cx88_core *core;
@@ -1923,7 +1923,7 @@ fail_free:
1923 return err; 1923 return err;
1924} 1924}
1925 1925
1926static void __devexit cx8800_finidev(struct pci_dev *pci_dev) 1926static void cx8800_finidev(struct pci_dev *pci_dev)
1927{ 1927{
1928 struct cx8800_dev *dev = pci_get_drvdata(pci_dev); 1928 struct cx8800_dev *dev = pci_get_drvdata(pci_dev);
1929 struct cx88_core *core = dev->core; 1929 struct cx88_core *core = dev->core;
@@ -2052,7 +2052,7 @@ static struct pci_driver cx8800_pci_driver = {
2052 .name = "cx8800", 2052 .name = "cx8800",
2053 .id_table = cx8800_pci_tbl, 2053 .id_table = cx8800_pci_tbl,
2054 .probe = cx8800_initdev, 2054 .probe = cx8800_initdev,
2055 .remove = __devexit_p(cx8800_finidev), 2055 .remove = cx8800_finidev,
2056#ifdef CONFIG_PM 2056#ifdef CONFIG_PM
2057 .suspend = cx8800_suspend, 2057 .suspend = cx8800_suspend,
2058 .resume = cx8800_resume, 2058 .resume = cx8800_resume,
diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
index feff57ee5a08..36e34522b9a8 100644
--- a/drivers/media/pci/ddbridge/ddbridge-core.c
+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
@@ -1542,7 +1542,7 @@ static void ddb_unmap(struct ddb *dev)
1542} 1542}
1543 1543
1544 1544
1545static void __devexit ddb_remove(struct pci_dev *pdev) 1545static void ddb_remove(struct pci_dev *pdev)
1546{ 1546{
1547 struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev); 1547 struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev);
1548 1548
@@ -1565,8 +1565,7 @@ static void __devexit ddb_remove(struct pci_dev *pdev)
1565} 1565}
1566 1566
1567 1567
1568static int __devinit ddb_probe(struct pci_dev *pdev, 1568static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1569 const struct pci_device_id *id)
1570{ 1569{
1571 struct ddb *dev; 1570 struct ddb *dev;
1572 int stat = 0; 1571 int stat = 0;
@@ -1679,7 +1678,7 @@ static struct ddb_info ddb_v6 = {
1679 .subvendor = _subvend, .subdevice = _subdev, \ 1678 .subvendor = _subvend, .subdevice = _subdev, \
1680 .driver_data = (unsigned long)&_driverdata } 1679 .driver_data = (unsigned long)&_driverdata }
1681 1680
1682static const struct pci_device_id ddb_id_tbl[] __devinitdata = { 1681static const struct pci_device_id ddb_id_tbl[] = {
1683 DDB_ID(DDVID, 0x0002, DDVID, 0x0001, ddb_octopus), 1682 DDB_ID(DDVID, 0x0002, DDVID, 0x0001, ddb_octopus),
1684 DDB_ID(DDVID, 0x0003, DDVID, 0x0001, ddb_octopus), 1683 DDB_ID(DDVID, 0x0003, DDVID, 0x0001, ddb_octopus),
1685 DDB_ID(DDVID, 0x0003, DDVID, 0x0002, ddb_octopus_le), 1684 DDB_ID(DDVID, 0x0003, DDVID, 0x0002, ddb_octopus_le),
@@ -1696,7 +1695,7 @@ static struct pci_driver ddb_pci_driver = {
1696 .name = "DDBridge", 1695 .name = "DDBridge",
1697 .id_table = ddb_id_tbl, 1696 .id_table = ddb_id_tbl,
1698 .probe = ddb_probe, 1697 .probe = ddb_probe,
1699 .remove = __devexit_p(ddb_remove), 1698 .remove = ddb_remove,
1700}; 1699};
1701 1700
1702static __init int module_init_ddbridge(void) 1701static __init int module_init_ddbridge(void)
diff --git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c
index f288ffcc4b6b..904c3ea350f5 100644
--- a/drivers/media/pci/dm1105/dm1105.c
+++ b/drivers/media/pci/dm1105/dm1105.c
@@ -616,7 +616,7 @@ static void dm1105_set_dma_addr(struct dm1105_dev *dev)
616 dm_writel(DM1105_STADR, cpu_to_le32(dev->dma_addr)); 616 dm_writel(DM1105_STADR, cpu_to_le32(dev->dma_addr));
617} 617}
618 618
619static int __devinit dm1105_dma_map(struct dm1105_dev *dev) 619static int dm1105_dma_map(struct dm1105_dev *dev)
620{ 620{
621 dev->ts_buf = pci_alloc_consistent(dev->pdev, 621 dev->ts_buf = pci_alloc_consistent(dev->pdev,
622 6 * DM1105_DMA_BYTES, 622 6 * DM1105_DMA_BYTES,
@@ -736,7 +736,7 @@ static irqreturn_t dm1105_irq(int irq, void *dev_id)
736 return IRQ_HANDLED; 736 return IRQ_HANDLED;
737} 737}
738 738
739static int __devinit dm1105_ir_init(struct dm1105_dev *dm1105) 739static int dm1105_ir_init(struct dm1105_dev *dm1105)
740{ 740{
741 struct rc_dev *dev; 741 struct rc_dev *dev;
742 int err = -ENOMEM; 742 int err = -ENOMEM;
@@ -776,12 +776,12 @@ static int __devinit dm1105_ir_init(struct dm1105_dev *dm1105)
776 return 0; 776 return 0;
777} 777}
778 778
779static void __devexit dm1105_ir_exit(struct dm1105_dev *dm1105) 779static void dm1105_ir_exit(struct dm1105_dev *dm1105)
780{ 780{
781 rc_unregister_device(dm1105->ir.dev); 781 rc_unregister_device(dm1105->ir.dev);
782} 782}
783 783
784static int __devinit dm1105_hw_init(struct dm1105_dev *dev) 784static int dm1105_hw_init(struct dm1105_dev *dev)
785{ 785{
786 dm1105_disable_irqs(dev); 786 dm1105_disable_irqs(dev);
787 787
@@ -849,7 +849,7 @@ static struct ds3000_config dvbworld_ds3000_config = {
849 .demod_address = 0x68, 849 .demod_address = 0x68,
850}; 850};
851 851
852static int __devinit frontend_init(struct dm1105_dev *dev) 852static int frontend_init(struct dm1105_dev *dev)
853{ 853{
854 int ret; 854 int ret;
855 855
@@ -949,7 +949,7 @@ static int __devinit frontend_init(struct dm1105_dev *dev)
949 return 0; 949 return 0;
950} 950}
951 951
952static void __devinit dm1105_read_mac(struct dm1105_dev *dev, u8 *mac) 952static void dm1105_read_mac(struct dm1105_dev *dev, u8 *mac)
953{ 953{
954 static u8 command[1] = { 0x28 }; 954 static u8 command[1] = { 0x28 };
955 955
@@ -971,7 +971,7 @@ static void __devinit dm1105_read_mac(struct dm1105_dev *dev, u8 *mac)
971 dev_info(&dev->pdev->dev, "MAC %pM\n", mac); 971 dev_info(&dev->pdev->dev, "MAC %pM\n", mac);
972} 972}
973 973
974static int __devinit dm1105_probe(struct pci_dev *pdev, 974static int dm1105_probe(struct pci_dev *pdev,
975 const struct pci_device_id *ent) 975 const struct pci_device_id *ent)
976{ 976{
977 struct dm1105_dev *dev; 977 struct dm1105_dev *dev;
@@ -1174,7 +1174,7 @@ err_kfree:
1174 return ret; 1174 return ret;
1175} 1175}
1176 1176
1177static void __devexit dm1105_remove(struct pci_dev *pdev) 1177static void dm1105_remove(struct pci_dev *pdev)
1178{ 1178{
1179 struct dm1105_dev *dev = pci_get_drvdata(pdev); 1179 struct dm1105_dev *dev = pci_get_drvdata(pdev);
1180 struct dvb_adapter *dvb_adapter = &dev->dvb_adapter; 1180 struct dvb_adapter *dvb_adapter = &dev->dvb_adapter;
@@ -1207,7 +1207,7 @@ static void __devexit dm1105_remove(struct pci_dev *pdev)
1207 kfree(dev); 1207 kfree(dev);
1208} 1208}
1209 1209
1210static struct pci_device_id dm1105_id_table[] __devinitdata = { 1210static struct pci_device_id dm1105_id_table[] = {
1211 { 1211 {
1212 .vendor = PCI_VENDOR_ID_TRIGEM, 1212 .vendor = PCI_VENDOR_ID_TRIGEM,
1213 .device = PCI_DEVICE_ID_DM1105, 1213 .device = PCI_DEVICE_ID_DM1105,
@@ -1229,7 +1229,7 @@ static struct pci_driver dm1105_driver = {
1229 .name = DRIVER_NAME, 1229 .name = DRIVER_NAME,
1230 .id_table = dm1105_id_table, 1230 .id_table = dm1105_id_table,
1231 .probe = dm1105_probe, 1231 .probe = dm1105_probe,
1232 .remove = __devexit_p(dm1105_remove), 1232 .remove = dm1105_remove,
1233}; 1233};
1234 1234
1235static int __init dm1105_init(void) 1235static int __init dm1105_init(void)
diff --git a/drivers/media/pci/ivtv/ivtv-driver.c b/drivers/media/pci/ivtv/ivtv-driver.c
index 74e9a5032364..df88dc4ab555 100644
--- a/drivers/media/pci/ivtv/ivtv-driver.c
+++ b/drivers/media/pci/ivtv/ivtv-driver.c
@@ -73,7 +73,7 @@ int (*ivtv_ext_init)(struct ivtv *);
73EXPORT_SYMBOL(ivtv_ext_init); 73EXPORT_SYMBOL(ivtv_ext_init);
74 74
75/* add your revision and whatnot here */ 75/* add your revision and whatnot here */
76static struct pci_device_id ivtv_pci_tbl[] __devinitdata = { 76static struct pci_device_id ivtv_pci_tbl[] = {
77 {PCI_VENDOR_ID_ICOMP, PCI_DEVICE_ID_IVTV15, 77 {PCI_VENDOR_ID_ICOMP, PCI_DEVICE_ID_IVTV15,
78 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 78 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
79 {PCI_VENDOR_ID_ICOMP, PCI_DEVICE_ID_IVTV16, 79 {PCI_VENDOR_ID_ICOMP, PCI_DEVICE_ID_IVTV16,
@@ -736,7 +736,7 @@ done:
736 No assumptions on the card type may be made here (see ivtv_init_struct2 736 No assumptions on the card type may be made here (see ivtv_init_struct2
737 for that). 737 for that).
738 */ 738 */
739static int __devinit ivtv_init_struct1(struct ivtv *itv) 739static int ivtv_init_struct1(struct ivtv *itv)
740{ 740{
741 struct sched_param param = { .sched_priority = 99 }; 741 struct sched_param param = { .sched_priority = 99 };
742 742
@@ -802,7 +802,7 @@ static int __devinit ivtv_init_struct1(struct ivtv *itv)
802 802
803/* Second initialization part. Here the card type has been 803/* Second initialization part. Here the card type has been
804 autodetected. */ 804 autodetected. */
805static void __devinit ivtv_init_struct2(struct ivtv *itv) 805static void ivtv_init_struct2(struct ivtv *itv)
806{ 806{
807 int i; 807 int i;
808 808
@@ -1001,8 +1001,7 @@ static void ivtv_load_and_init_modules(struct ivtv *itv)
1001 } 1001 }
1002} 1002}
1003 1003
1004static int __devinit ivtv_probe(struct pci_dev *pdev, 1004static int ivtv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
1005 const struct pci_device_id *pci_id)
1006{ 1005{
1007 int retval = 0; 1006 int retval = 0;
1008 int vbi_buf_size; 1007 int vbi_buf_size;
diff --git a/drivers/media/pci/mantis/hopper_cards.c b/drivers/media/pci/mantis/hopper_cards.c
index cc0251e01077..6fe9fe5293dc 100644
--- a/drivers/media/pci/mantis/hopper_cards.c
+++ b/drivers/media/pci/mantis/hopper_cards.c
@@ -151,7 +151,8 @@ static irqreturn_t hopper_irq_handler(int irq, void *dev_id)
151 return IRQ_HANDLED; 151 return IRQ_HANDLED;
152} 152}
153 153
154static int __devinit hopper_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) 154static int hopper_pci_probe(struct pci_dev *pdev,
155 const struct pci_device_id *pci_id)
155{ 156{
156 struct mantis_pci *mantis; 157 struct mantis_pci *mantis;
157 struct mantis_hwconfig *config; 158 struct mantis_hwconfig *config;
@@ -230,7 +231,7 @@ fail0:
230 return err; 231 return err;
231} 232}
232 233
233static void __devexit hopper_pci_remove(struct pci_dev *pdev) 234static void hopper_pci_remove(struct pci_dev *pdev)
234{ 235{
235 struct mantis_pci *mantis = pci_get_drvdata(pdev); 236 struct mantis_pci *mantis = pci_get_drvdata(pdev);
236 237
@@ -259,12 +260,12 @@ static struct pci_driver hopper_pci_driver = {
259 .remove = hopper_pci_remove, 260 .remove = hopper_pci_remove,
260}; 261};
261 262
262static int __devinit hopper_init(void) 263static int hopper_init(void)
263{ 264{
264 return pci_register_driver(&hopper_pci_driver); 265 return pci_register_driver(&hopper_pci_driver);
265} 266}
266 267
267static void __devexit hopper_exit(void) 268static void hopper_exit(void)
268{ 269{
269 return pci_unregister_driver(&hopper_pci_driver); 270 return pci_unregister_driver(&hopper_pci_driver);
270} 271}
diff --git a/drivers/media/pci/mantis/mantis_cards.c b/drivers/media/pci/mantis/mantis_cards.c
index 0207d1f064e0..932a0d73a7f8 100644
--- a/drivers/media/pci/mantis/mantis_cards.c
+++ b/drivers/media/pci/mantis/mantis_cards.c
@@ -159,7 +159,8 @@ static irqreturn_t mantis_irq_handler(int irq, void *dev_id)
159 return IRQ_HANDLED; 159 return IRQ_HANDLED;
160} 160}
161 161
162static int __devinit mantis_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) 162static int mantis_pci_probe(struct pci_dev *pdev,
163 const struct pci_device_id *pci_id)
163{ 164{
164 struct mantis_pci *mantis; 165 struct mantis_pci *mantis;
165 struct mantis_hwconfig *config; 166 struct mantis_hwconfig *config;
@@ -249,7 +250,7 @@ fail0:
249 return err; 250 return err;
250} 251}
251 252
252static void __devexit mantis_pci_remove(struct pci_dev *pdev) 253static void mantis_pci_remove(struct pci_dev *pdev)
253{ 254{
254 struct mantis_pci *mantis = pci_get_drvdata(pdev); 255 struct mantis_pci *mantis = pci_get_drvdata(pdev);
255 256
@@ -289,12 +290,12 @@ static struct pci_driver mantis_pci_driver = {
289 .remove = mantis_pci_remove, 290 .remove = mantis_pci_remove,
290}; 291};
291 292
292static int __devinit mantis_init(void) 293static int mantis_init(void)
293{ 294{
294 return pci_register_driver(&mantis_pci_driver); 295 return pci_register_driver(&mantis_pci_driver);
295} 296}
296 297
297static void __devexit mantis_exit(void) 298static void mantis_exit(void)
298{ 299{
299 return pci_unregister_driver(&mantis_pci_driver); 300 return pci_unregister_driver(&mantis_pci_driver);
300} 301}
diff --git a/drivers/media/pci/mantis/mantis_dvb.c b/drivers/media/pci/mantis/mantis_dvb.c
index 5d15c6b74d9b..5a71e1791cf5 100644
--- a/drivers/media/pci/mantis/mantis_dvb.c
+++ b/drivers/media/pci/mantis/mantis_dvb.c
@@ -144,7 +144,7 @@ static int mantis_dvb_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
144 return 0; 144 return 0;
145} 145}
146 146
147int __devinit mantis_dvb_init(struct mantis_pci *mantis) 147int mantis_dvb_init(struct mantis_pci *mantis)
148{ 148{
149 struct mantis_hwconfig *config = mantis->hwconfig; 149 struct mantis_hwconfig *config = mantis->hwconfig;
150 int result = -1; 150 int result = -1;
@@ -271,7 +271,7 @@ err0:
271} 271}
272EXPORT_SYMBOL_GPL(mantis_dvb_init); 272EXPORT_SYMBOL_GPL(mantis_dvb_init);
273 273
274int __devexit mantis_dvb_exit(struct mantis_pci *mantis) 274int mantis_dvb_exit(struct mantis_pci *mantis)
275{ 275{
276 int err; 276 int err;
277 277
diff --git a/drivers/media/pci/mantis/mantis_i2c.c b/drivers/media/pci/mantis/mantis_i2c.c
index e7794517fe26..937fb9d50213 100644
--- a/drivers/media/pci/mantis/mantis_i2c.c
+++ b/drivers/media/pci/mantis/mantis_i2c.c
@@ -217,7 +217,7 @@ static struct i2c_algorithm mantis_algo = {
217 .functionality = mantis_i2c_func, 217 .functionality = mantis_i2c_func,
218}; 218};
219 219
220int __devinit mantis_i2c_init(struct mantis_pci *mantis) 220int mantis_i2c_init(struct mantis_pci *mantis)
221{ 221{
222 u32 intstat, intmask; 222 u32 intstat, intmask;
223 struct i2c_adapter *i2c_adapter = &mantis->adapter; 223 struct i2c_adapter *i2c_adapter = &mantis->adapter;
diff --git a/drivers/media/pci/mantis/mantis_pci.c b/drivers/media/pci/mantis/mantis_pci.c
index 371558af2d96..a846036ea022 100644
--- a/drivers/media/pci/mantis/mantis_pci.c
+++ b/drivers/media/pci/mantis/mantis_pci.c
@@ -46,7 +46,7 @@
46 46
47#define DRIVER_NAME "Mantis Core" 47#define DRIVER_NAME "Mantis Core"
48 48
49int __devinit mantis_pci_init(struct mantis_pci *mantis) 49int mantis_pci_init(struct mantis_pci *mantis)
50{ 50{
51 u8 latency; 51 u8 latency;
52 struct mantis_hwconfig *config = mantis->hwconfig; 52 struct mantis_hwconfig *config = mantis->hwconfig;
diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c
index ae7d32027bf7..049e18667cd0 100644
--- a/drivers/media/pci/meye/meye.c
+++ b/drivers/media/pci/meye/meye.c
@@ -1728,8 +1728,7 @@ static int meye_resume(struct pci_dev *pdev)
1728} 1728}
1729#endif 1729#endif
1730 1730
1731static int __devinit meye_probe(struct pci_dev *pcidev, 1731static int meye_probe(struct pci_dev *pcidev, const struct pci_device_id *ent)
1732 const struct pci_device_id *ent)
1733{ 1732{
1734 struct v4l2_device *v4l2_dev = &meye.v4l2_dev; 1733 struct v4l2_device *v4l2_dev = &meye.v4l2_dev;
1735 int ret = -EBUSY; 1734 int ret = -EBUSY;
@@ -1889,7 +1888,7 @@ outnotdev:
1889 return ret; 1888 return ret;
1890} 1889}
1891 1890
1892static void __devexit meye_remove(struct pci_dev *pcidev) 1891static void meye_remove(struct pci_dev *pcidev)
1893{ 1892{
1894 video_unregister_device(meye.vdev); 1893 video_unregister_device(meye.vdev);
1895 1894
@@ -1935,7 +1934,7 @@ static struct pci_driver meye_driver = {
1935 .name = "meye", 1934 .name = "meye",
1936 .id_table = meye_pci_tbl, 1935 .id_table = meye_pci_tbl,
1937 .probe = meye_probe, 1936 .probe = meye_probe,
1938 .remove = __devexit_p(meye_remove), 1937 .remove = meye_remove,
1939#ifdef CONFIG_PM 1938#ifdef CONFIG_PM
1940 .suspend = meye_suspend, 1939 .suspend = meye_suspend,
1941 .resume = meye_resume, 1940 .resume = meye_resume,
diff --git a/drivers/media/pci/ngene/ngene-cards.c b/drivers/media/pci/ngene/ngene-cards.c
index b38bce529566..fad214113669 100644
--- a/drivers/media/pci/ngene/ngene-cards.c
+++ b/drivers/media/pci/ngene/ngene-cards.c
@@ -743,7 +743,7 @@ static struct ngene_info ngene_info_terratec = {
743 743
744/****************************************************************************/ 744/****************************************************************************/
745 745
746static const struct pci_device_id ngene_id_tbl[] __devinitdata = { 746static const struct pci_device_id ngene_id_tbl[] = {
747 NGENE_ID(0x18c3, 0xabc3, ngene_info_cineS2), 747 NGENE_ID(0x18c3, 0xabc3, ngene_info_cineS2),
748 NGENE_ID(0x18c3, 0xabc4, ngene_info_cineS2), 748 NGENE_ID(0x18c3, 0xabc4, ngene_info_cineS2),
749 NGENE_ID(0x18c3, 0xdb01, ngene_info_satixS2), 749 NGENE_ID(0x18c3, 0xdb01, ngene_info_satixS2),
@@ -800,7 +800,7 @@ static struct pci_driver ngene_pci_driver = {
800 .name = "ngene", 800 .name = "ngene",
801 .id_table = ngene_id_tbl, 801 .id_table = ngene_id_tbl,
802 .probe = ngene_probe, 802 .probe = ngene_probe,
803 .remove = __devexit_p(ngene_remove), 803 .remove = ngene_remove,
804 .err_handler = &ngene_errors, 804 .err_handler = &ngene_errors,
805 .shutdown = ngene_shutdown, 805 .shutdown = ngene_shutdown,
806}; 806};
diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c
index 8eeec4f50ccb..37ebc42392ad 100644
--- a/drivers/media/pci/ngene/ngene-core.c
+++ b/drivers/media/pci/ngene/ngene-core.c
@@ -1636,7 +1636,7 @@ void ngene_shutdown(struct pci_dev *pdev)
1636/* device probe/remove calls ************************************************/ 1636/* device probe/remove calls ************************************************/
1637/****************************************************************************/ 1637/****************************************************************************/
1638 1638
1639void __devexit ngene_remove(struct pci_dev *pdev) 1639void ngene_remove(struct pci_dev *pdev)
1640{ 1640{
1641 struct ngene *dev = pci_get_drvdata(pdev); 1641 struct ngene *dev = pci_get_drvdata(pdev);
1642 int i; 1642 int i;
@@ -1652,8 +1652,7 @@ void __devexit ngene_remove(struct pci_dev *pdev)
1652 pci_disable_device(pdev); 1652 pci_disable_device(pdev);
1653} 1653}
1654 1654
1655int __devinit ngene_probe(struct pci_dev *pci_dev, 1655int ngene_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
1656 const struct pci_device_id *id)
1657{ 1656{
1658 struct ngene *dev; 1657 struct ngene *dev;
1659 int stat = 0; 1658 int stat = 0;
diff --git a/drivers/media/pci/ngene/ngene.h b/drivers/media/pci/ngene/ngene.h
index 5443dc0caea5..22c39ff6bfa0 100644
--- a/drivers/media/pci/ngene/ngene.h
+++ b/drivers/media/pci/ngene/ngene.h
@@ -887,9 +887,8 @@ struct ngene_buffer {
887 887
888 888
889/* Provided by ngene-core.c */ 889/* Provided by ngene-core.c */
890int __devinit ngene_probe(struct pci_dev *pci_dev, 890int ngene_probe(struct pci_dev *pci_dev, const struct pci_device_id *id);
891 const struct pci_device_id *id); 891void ngene_remove(struct pci_dev *pdev);
892void __devexit ngene_remove(struct pci_dev *pdev);
893void ngene_shutdown(struct pci_dev *pdev); 892void ngene_shutdown(struct pci_dev *pdev);
894int ngene_command(struct ngene *dev, struct ngene_command *com); 893int ngene_command(struct ngene *dev, struct ngene_command *com);
895int ngene_command_gpio_set(struct ngene *dev, u8 select, u8 level); 894int ngene_command_gpio_set(struct ngene *dev, u8 select, u8 level);
diff --git a/drivers/media/pci/pluto2/pluto2.c b/drivers/media/pci/pluto2/pluto2.c
index f148b19a206a..2290faee5852 100644
--- a/drivers/media/pci/pluto2/pluto2.c
+++ b/drivers/media/pci/pluto2/pluto2.c
@@ -240,7 +240,7 @@ static void pluto_set_dma_addr(struct pluto *pluto)
240 pluto_writereg(pluto, REG_PCAR, pluto->dma_addr); 240 pluto_writereg(pluto, REG_PCAR, pluto->dma_addr);
241} 241}
242 242
243static int __devinit pluto_dma_map(struct pluto *pluto) 243static int pluto_dma_map(struct pluto *pluto)
244{ 244{
245 pluto->dma_addr = pci_map_single(pluto->pdev, pluto->dma_buf, 245 pluto->dma_addr = pci_map_single(pluto->pdev, pluto->dma_buf,
246 TS_DMA_BYTES, PCI_DMA_FROMDEVICE); 246 TS_DMA_BYTES, PCI_DMA_FROMDEVICE);
@@ -368,7 +368,7 @@ static irqreturn_t pluto_irq(int irq, void *dev_id)
368 return IRQ_HANDLED; 368 return IRQ_HANDLED;
369} 369}
370 370
371static void __devinit pluto_enable_irqs(struct pluto *pluto) 371static void pluto_enable_irqs(struct pluto *pluto)
372{ 372{
373 u32 val = pluto_readreg(pluto, REG_TSCR); 373 u32 val = pluto_readreg(pluto, REG_TSCR);
374 374
@@ -394,7 +394,7 @@ static void pluto_disable_irqs(struct pluto *pluto)
394 pluto_write_tscr(pluto, val); 394 pluto_write_tscr(pluto, val);
395} 395}
396 396
397static int __devinit pluto_hw_init(struct pluto *pluto) 397static int pluto_hw_init(struct pluto *pluto)
398{ 398{
399 pluto_reset_frontend(pluto, 1); 399 pluto_reset_frontend(pluto, 1);
400 400
@@ -505,7 +505,7 @@ static int pluto2_request_firmware(struct dvb_frontend *fe,
505 return request_firmware(fw, name, &pluto->pdev->dev); 505 return request_firmware(fw, name, &pluto->pdev->dev);
506} 506}
507 507
508static struct tda1004x_config pluto2_fe_config __devinitdata = { 508static struct tda1004x_config pluto2_fe_config = {
509 .demod_address = I2C_ADDR_TDA10046 >> 1, 509 .demod_address = I2C_ADDR_TDA10046 >> 1,
510 .invert = 1, 510 .invert = 1,
511 .invert_oclk = 0, 511 .invert_oclk = 0,
@@ -515,7 +515,7 @@ static struct tda1004x_config pluto2_fe_config __devinitdata = {
515 .request_firmware = pluto2_request_firmware, 515 .request_firmware = pluto2_request_firmware,
516}; 516};
517 517
518static int __devinit frontend_init(struct pluto *pluto) 518static int frontend_init(struct pluto *pluto)
519{ 519{
520 int ret; 520 int ret;
521 521
@@ -536,14 +536,14 @@ static int __devinit frontend_init(struct pluto *pluto)
536 return 0; 536 return 0;
537} 537}
538 538
539static void __devinit pluto_read_rev(struct pluto *pluto) 539static void pluto_read_rev(struct pluto *pluto)
540{ 540{
541 u32 val = pluto_readreg(pluto, REG_MISC) & MISC_DVR; 541 u32 val = pluto_readreg(pluto, REG_MISC) & MISC_DVR;
542 dev_info(&pluto->pdev->dev, "board revision %d.%d\n", 542 dev_info(&pluto->pdev->dev, "board revision %d.%d\n",
543 (val >> 12) & 0x0f, (val >> 4) & 0xff); 543 (val >> 12) & 0x0f, (val >> 4) & 0xff);
544} 544}
545 545
546static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac) 546static void pluto_read_mac(struct pluto *pluto, u8 *mac)
547{ 547{
548 u32 val = pluto_readreg(pluto, REG_MMAC); 548 u32 val = pluto_readreg(pluto, REG_MMAC);
549 mac[0] = (val >> 8) & 0xff; 549 mac[0] = (val >> 8) & 0xff;
@@ -560,7 +560,7 @@ static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac)
560 dev_info(&pluto->pdev->dev, "MAC %pM\n", mac); 560 dev_info(&pluto->pdev->dev, "MAC %pM\n", mac);
561} 561}
562 562
563static int __devinit pluto_read_serial(struct pluto *pluto) 563static int pluto_read_serial(struct pluto *pluto)
564{ 564{
565 struct pci_dev *pdev = pluto->pdev; 565 struct pci_dev *pdev = pluto->pdev;
566 unsigned int i, j; 566 unsigned int i, j;
@@ -588,8 +588,7 @@ out:
588 return 0; 588 return 0;
589} 589}
590 590
591static int __devinit pluto2_probe(struct pci_dev *pdev, 591static int pluto2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
592 const struct pci_device_id *ent)
593{ 592{
594 struct pluto *pluto; 593 struct pluto *pluto;
595 struct dvb_adapter *dvb_adapter; 594 struct dvb_adapter *dvb_adapter;
@@ -742,7 +741,7 @@ err_kfree:
742 goto out; 741 goto out;
743} 742}
744 743
745static void __devexit pluto2_remove(struct pci_dev *pdev) 744static void pluto2_remove(struct pci_dev *pdev)
746{ 745{
747 struct pluto *pluto = pci_get_drvdata(pdev); 746 struct pluto *pluto = pci_get_drvdata(pdev);
748 struct dvb_adapter *dvb_adapter = &pluto->dvb_adapter; 747 struct dvb_adapter *dvb_adapter = &pluto->dvb_adapter;
@@ -777,7 +776,7 @@ static void __devexit pluto2_remove(struct pci_dev *pdev)
777#define PCI_DEVICE_ID_PLUTO2 0x0001 776#define PCI_DEVICE_ID_PLUTO2 0x0001
778#endif 777#endif
779 778
780static struct pci_device_id pluto2_id_table[] __devinitdata = { 779static struct pci_device_id pluto2_id_table[] = {
781 { 780 {
782 .vendor = PCI_VENDOR_ID_SCM, 781 .vendor = PCI_VENDOR_ID_SCM,
783 .device = PCI_DEVICE_ID_PLUTO2, 782 .device = PCI_DEVICE_ID_PLUTO2,
@@ -794,7 +793,7 @@ static struct pci_driver pluto2_driver = {
794 .name = DRIVER_NAME, 793 .name = DRIVER_NAME,
795 .id_table = pluto2_id_table, 794 .id_table = pluto2_id_table,
796 .probe = pluto2_probe, 795 .probe = pluto2_probe,
797 .remove = __devexit_p(pluto2_remove), 796 .remove = pluto2_remove,
798}; 797};
799 798
800static int __init pluto2_init(void) 799static int __init pluto2_init(void)
diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c
index 15b35c4725f1..e9211086df49 100644
--- a/drivers/media/pci/pt1/pt1.c
+++ b/drivers/media/pci/pt1/pt1.c
@@ -1058,7 +1058,7 @@ static void pt1_i2c_init(struct pt1 *pt1)
1058 pt1_i2c_emit(pt1, i, 0, 0, 1, 1, 0); 1058 pt1_i2c_emit(pt1, i, 0, 0, 1, 1, 0);
1059} 1059}
1060 1060
1061static void __devexit pt1_remove(struct pci_dev *pdev) 1061static void pt1_remove(struct pci_dev *pdev)
1062{ 1062{
1063 struct pt1 *pt1; 1063 struct pt1 *pt1;
1064 void __iomem *regs; 1064 void __iomem *regs;
@@ -1083,8 +1083,7 @@ static void __devexit pt1_remove(struct pci_dev *pdev)
1083 pci_disable_device(pdev); 1083 pci_disable_device(pdev);
1084} 1084}
1085 1085
1086static int __devinit 1086static int pt1_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1087pt1_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1088{ 1087{
1089 int ret; 1088 int ret;
1090 void __iomem *regs; 1089 void __iomem *regs;
@@ -1222,7 +1221,7 @@ MODULE_DEVICE_TABLE(pci, pt1_id_table);
1222static struct pci_driver pt1_driver = { 1221static struct pci_driver pt1_driver = {
1223 .name = DRIVER_NAME, 1222 .name = DRIVER_NAME,
1224 .probe = pt1_probe, 1223 .probe = pt1_probe,
1225 .remove = __devexit_p(pt1_remove), 1224 .remove = pt1_remove,
1226 .id_table = pt1_id_table, 1225 .id_table = pt1_id_table,
1227}; 1226};
1228 1227
diff --git a/drivers/media/pci/saa7134/saa7134-core.c b/drivers/media/pci/saa7134/saa7134-core.c
index 8976d0e65813..e359d200d698 100644
--- a/drivers/media/pci/saa7134/saa7134-core.c
+++ b/drivers/media/pci/saa7134/saa7134-core.c
@@ -754,7 +754,7 @@ static int saa7134_hwfini(struct saa7134_dev *dev)
754 return 0; 754 return 0;
755} 755}
756 756
757static void __devinit must_configure_manually(int has_eeprom) 757static void must_configure_manually(int has_eeprom)
758{ 758{
759 unsigned int i,p; 759 unsigned int i,p;
760 760
@@ -860,8 +860,8 @@ static void mpeg_ops_detach(struct saa7134_mpeg_ops *ops,
860 dev->mops = NULL; 860 dev->mops = NULL;
861} 861}
862 862
863static int __devinit saa7134_initdev(struct pci_dev *pci_dev, 863static int saa7134_initdev(struct pci_dev *pci_dev,
864 const struct pci_device_id *pci_id) 864 const struct pci_device_id *pci_id)
865{ 865{
866 struct saa7134_dev *dev; 866 struct saa7134_dev *dev;
867 struct saa7134_mpeg_ops *mops; 867 struct saa7134_mpeg_ops *mops;
@@ -1102,7 +1102,7 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
1102 return err; 1102 return err;
1103} 1103}
1104 1104
1105static void __devexit saa7134_finidev(struct pci_dev *pci_dev) 1105static void saa7134_finidev(struct pci_dev *pci_dev)
1106{ 1106{
1107 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); 1107 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev);
1108 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); 1108 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev);
@@ -1322,7 +1322,7 @@ static struct pci_driver saa7134_pci_driver = {
1322 .name = "saa7134", 1322 .name = "saa7134",
1323 .id_table = saa7134_pci_tbl, 1323 .id_table = saa7134_pci_tbl,
1324 .probe = saa7134_initdev, 1324 .probe = saa7134_initdev,
1325 .remove = __devexit_p(saa7134_finidev), 1325 .remove = saa7134_finidev,
1326#ifdef CONFIG_PM 1326#ifdef CONFIG_PM
1327 .suspend = saa7134_suspend, 1327 .suspend = saa7134_suspend,
1328 .resume = saa7134_resume 1328 .resume = saa7134_resume
diff --git a/drivers/media/pci/saa7134/saa7134.h b/drivers/media/pci/saa7134/saa7134.h
index c24b6512bd8f..075908fae4d9 100644
--- a/drivers/media/pci/saa7134/saa7134.h
+++ b/drivers/media/pci/saa7134/saa7134.h
@@ -739,7 +739,7 @@ extern int (*saa7134_dmasound_exit)(struct saa7134_dev *dev);
739 739
740extern struct saa7134_board saa7134_boards[]; 740extern struct saa7134_board saa7134_boards[];
741extern const unsigned int saa7134_bcount; 741extern const unsigned int saa7134_bcount;
742extern struct pci_device_id __devinitdata saa7134_pci_tbl[]; 742extern struct pci_device_id saa7134_pci_tbl[];
743 743
744extern int saa7134_board_init1(struct saa7134_dev *dev); 744extern int saa7134_board_init1(struct saa7134_dev *dev);
745extern int saa7134_board_init2(struct saa7134_dev *dev); 745extern int saa7134_board_init2(struct saa7134_dev *dev);
diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164/saa7164-core.c
index 063047f56766..63502e7a2a76 100644
--- a/drivers/media/pci/saa7164/saa7164-core.c
+++ b/drivers/media/pci/saa7164/saa7164-core.c
@@ -1185,8 +1185,8 @@ static int saa7164_thread_function(void *data)
1185 return 0; 1185 return 0;
1186} 1186}
1187 1187
1188static int __devinit saa7164_initdev(struct pci_dev *pci_dev, 1188static int saa7164_initdev(struct pci_dev *pci_dev,
1189 const struct pci_device_id *pci_id) 1189 const struct pci_device_id *pci_id)
1190{ 1190{
1191 struct saa7164_dev *dev; 1191 struct saa7164_dev *dev;
1192 int err, i; 1192 int err, i;
@@ -1376,7 +1376,7 @@ static void saa7164_shutdown(struct saa7164_dev *dev)
1376 dprintk(1, "%s()\n", __func__); 1376 dprintk(1, "%s()\n", __func__);
1377} 1377}
1378 1378
1379static void __devexit saa7164_finidev(struct pci_dev *pci_dev) 1379static void saa7164_finidev(struct pci_dev *pci_dev)
1380{ 1380{
1381 struct saa7164_dev *dev = pci_get_drvdata(pci_dev); 1381 struct saa7164_dev *dev = pci_get_drvdata(pci_dev);
1382 1382
@@ -1459,7 +1459,7 @@ static struct pci_driver saa7164_pci_driver = {
1459 .name = "saa7164", 1459 .name = "saa7164",
1460 .id_table = saa7164_pci_tbl, 1460 .id_table = saa7164_pci_tbl,
1461 .probe = saa7164_initdev, 1461 .probe = saa7164_initdev,
1462 .remove = __devexit_p(saa7164_finidev), 1462 .remove = saa7164_finidev,
1463 /* TODO */ 1463 /* TODO */
1464 .suspend = NULL, 1464 .suspend = NULL,
1465 .resume = NULL, 1465 .resume = NULL,
diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c b/drivers/media/pci/sta2x11/sta2x11_vip.c
index 4c10205264d4..27ae48842656 100644
--- a/drivers/media/pci/sta2x11/sta2x11_vip.c
+++ b/drivers/media/pci/sta2x11/sta2x11_vip.c
@@ -1205,8 +1205,8 @@ static void vip_gpio_release(struct device *dev, int pin, const char *name)
1205 * 1205 *
1206 * -ENODEV, device could not be detected or registered 1206 * -ENODEV, device could not be detected or registered
1207 */ 1207 */
1208static int __devinit sta2x11_vip_init_one(struct pci_dev *pdev, 1208static int sta2x11_vip_init_one(struct pci_dev *pdev,
1209 const struct pci_device_id *ent) 1209 const struct pci_device_id *ent)
1210{ 1210{
1211 int ret; 1211 int ret;
1212 struct sta2x11_vip *vip; 1212 struct sta2x11_vip *vip;
@@ -1376,7 +1376,7 @@ disable:
1376 * free memory 1376 * free memory
1377 * free GPIO pins 1377 * free GPIO pins
1378 */ 1378 */
1379static void __devexit sta2x11_vip_remove_one(struct pci_dev *pdev) 1379static void sta2x11_vip_remove_one(struct pci_dev *pdev)
1380{ 1380{
1381 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); 1381 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev);
1382 struct sta2x11_vip *vip = 1382 struct sta2x11_vip *vip =
@@ -1517,7 +1517,7 @@ static DEFINE_PCI_DEVICE_TABLE(sta2x11_vip_pci_tbl) = {
1517static struct pci_driver sta2x11_vip_driver = { 1517static struct pci_driver sta2x11_vip_driver = {
1518 .name = DRV_NAME, 1518 .name = DRV_NAME,
1519 .probe = sta2x11_vip_init_one, 1519 .probe = sta2x11_vip_init_one,
1520 .remove = __devexit_p(sta2x11_vip_remove_one), 1520 .remove = sta2x11_vip_remove_one,
1521 .id_table = sta2x11_vip_pci_tbl, 1521 .id_table = sta2x11_vip_pci_tbl,
1522#ifdef CONFIG_PM 1522#ifdef CONFIG_PM
1523 .suspend = sta2x11_vip_suspend, 1523 .suspend = sta2x11_vip_suspend,
diff --git a/drivers/media/pci/ttpci/av7110.c b/drivers/media/pci/ttpci/av7110.c
index 4bd8bd56befc..4656d4a10af0 100644
--- a/drivers/media/pci/ttpci/av7110.c
+++ b/drivers/media/pci/ttpci/av7110.c
@@ -2367,8 +2367,8 @@ static int frontend_init(struct av7110 *av7110)
2367 * The same behaviour of missing VSYNC can be duplicated on budget 2367 * The same behaviour of missing VSYNC can be duplicated on budget
2368 * cards, by seting DD1_INIT trigger mode 7 in 3rd nibble. 2368 * cards, by seting DD1_INIT trigger mode 7 in 3rd nibble.
2369 */ 2369 */
2370static int __devinit av7110_attach(struct saa7146_dev* dev, 2370static int av7110_attach(struct saa7146_dev* dev,
2371 struct saa7146_pci_extension_data *pci_ext) 2371 struct saa7146_pci_extension_data *pci_ext)
2372{ 2372{
2373 const int length = TS_WIDTH * TS_HEIGHT; 2373 const int length = TS_WIDTH * TS_HEIGHT;
2374 struct pci_dev *pdev = dev->pci; 2374 struct pci_dev *pdev = dev->pci;
@@ -2761,7 +2761,7 @@ err_kfree_0:
2761 goto out; 2761 goto out;
2762} 2762}
2763 2763
2764static int __devexit av7110_detach(struct saa7146_dev* saa) 2764static int av7110_detach(struct saa7146_dev* saa)
2765{ 2765{
2766 struct av7110 *av7110 = saa->ext_priv; 2766 struct av7110 *av7110 = saa->ext_priv;
2767 dprintk(4, "%p\n", av7110); 2767 dprintk(4, "%p\n", av7110);
@@ -2910,7 +2910,7 @@ static struct saa7146_extension av7110_extension_driver = {
2910 .module = THIS_MODULE, 2910 .module = THIS_MODULE,
2911 .pci_tbl = &pci_tbl[0], 2911 .pci_tbl = &pci_tbl[0],
2912 .attach = av7110_attach, 2912 .attach = av7110_attach,
2913 .detach = __devexit_p(av7110_detach), 2913 .detach = av7110_detach,
2914 2914
2915 .irq_mask = MASK_19 | MASK_03 | MASK_10, 2915 .irq_mask = MASK_19 | MASK_03 | MASK_10,
2916 .irq_func = av7110_irq, 2916 .irq_func = av7110_irq,
diff --git a/drivers/media/pci/ttpci/av7110_ir.c b/drivers/media/pci/ttpci/av7110_ir.c
index 908f272fe26c..eb822862a646 100644
--- a/drivers/media/pci/ttpci/av7110_ir.c
+++ b/drivers/media/pci/ttpci/av7110_ir.c
@@ -324,7 +324,7 @@ static void ir_handler(struct av7110 *av7110, u32 ircom)
324} 324}
325 325
326 326
327int __devinit av7110_ir_init(struct av7110 *av7110) 327int av7110_ir_init(struct av7110 *av7110)
328{ 328{
329 struct input_dev *input_dev; 329 struct input_dev *input_dev;
330 static struct proc_dir_entry *e; 330 static struct proc_dir_entry *e;
@@ -385,7 +385,7 @@ int __devinit av7110_ir_init(struct av7110 *av7110)
385} 385}
386 386
387 387
388void __devexit av7110_ir_exit(struct av7110 *av7110) 388void av7110_ir_exit(struct av7110 *av7110)
389{ 389{
390 int i; 390 int i;
391 391
diff --git a/drivers/media/pci/zoran/zoran_card.c b/drivers/media/pci/zoran/zoran_card.c
index fffc54b452c8..a90a3b9b09bf 100644
--- a/drivers/media/pci/zoran/zoran_card.c
+++ b/drivers/media/pci/zoran/zoran_card.c
@@ -369,7 +369,7 @@ static const unsigned short bt819_addrs[] = { 0x45, I2C_CLIENT_END };
369static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END }; 369static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END };
370static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END }; 370static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END };
371 371
372static struct card_info zoran_cards[NUM_CARDS] __devinitdata = { 372static struct card_info zoran_cards[NUM_CARDS] = {
373 { 373 {
374 .type = DC10_old, 374 .type = DC10_old,
375 .name = "DC10(old)", 375 .name = "DC10(old)",
@@ -948,8 +948,7 @@ zoran_open_init_params (struct zoran *zr)
948 zr->testing = 0; 948 zr->testing = 0;
949} 949}
950 950
951static void __devinit 951static void test_interrupts (struct zoran *zr)
952test_interrupts (struct zoran *zr)
953{ 952{
954 DEFINE_WAIT(wait); 953 DEFINE_WAIT(wait);
955 int timeout, icr; 954 int timeout, icr;
@@ -974,8 +973,7 @@ test_interrupts (struct zoran *zr)
974 btwrite(icr, ZR36057_ICR); 973 btwrite(icr, ZR36057_ICR);
975} 974}
976 975
977static int __devinit 976static int zr36057_init (struct zoran *zr)
978zr36057_init (struct zoran *zr)
979{ 977{
980 int j, err; 978 int j, err;
981 979
@@ -1083,7 +1081,7 @@ exit_free:
1083 return err; 1081 return err;
1084} 1082}
1085 1083
1086static void __devexit zoran_remove(struct pci_dev *pdev) 1084static void zoran_remove(struct pci_dev *pdev)
1087{ 1085{
1088 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); 1086 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev);
1089 struct zoran *zr = to_zoran(v4l2_dev); 1087 struct zoran *zr = to_zoran(v4l2_dev);
@@ -1129,9 +1127,8 @@ zoran_vdev_release (struct video_device *vdev)
1129 kfree(vdev); 1127 kfree(vdev);
1130} 1128}
1131 1129
1132static struct videocodec_master * __devinit 1130static struct videocodec_master *zoran_setup_videocodec(struct zoran *zr,
1133zoran_setup_videocodec (struct zoran *zr, 1131 int type)
1134 int type)
1135{ 1132{
1136 struct videocodec_master *m = NULL; 1133 struct videocodec_master *m = NULL;
1137 1134
@@ -1192,8 +1189,7 @@ static void zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd, void *
1192 * Scan for a Buz card (actually for the PCI controller ZR36057), 1189 * Scan for a Buz card (actually for the PCI controller ZR36057),
1193 * request the irq and map the io memory 1190 * request the irq and map the io memory
1194 */ 1191 */
1195static int __devinit zoran_probe(struct pci_dev *pdev, 1192static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1196 const struct pci_device_id *ent)
1197{ 1193{
1198 unsigned char latency, need_latency; 1194 unsigned char latency, need_latency;
1199 struct zoran *zr; 1195 struct zoran *zr;
@@ -1459,7 +1455,7 @@ static struct pci_driver zoran_driver = {
1459 .name = "zr36067", 1455 .name = "zr36067",
1460 .id_table = zr36067_pci_tbl, 1456 .id_table = zr36067_pci_tbl,
1461 .probe = zoran_probe, 1457 .probe = zoran_probe,
1462 .remove = __devexit_p(zoran_remove), 1458 .remove = zoran_remove,
1463}; 1459};
1464 1460
1465static int __init zoran_init(void) 1461static int __init zoran_init(void)
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c
index 53f12c7466b0..e60ae41e2319 100644
--- a/drivers/media/pci/zoran/zoran_driver.c
+++ b/drivers/media/pci/zoran/zoran_driver.c
@@ -3080,7 +3080,7 @@ static const struct v4l2_file_operations zoran_fops = {
3080 .poll = zoran_poll, 3080 .poll = zoran_poll,
3081}; 3081};
3082 3082
3083struct video_device zoran_template __devinitdata = { 3083struct video_device zoran_template = {
3084 .name = ZORAN_NAME, 3084 .name = ZORAN_NAME,
3085 .fops = &zoran_fops, 3085 .fops = &zoran_fops,
3086 .ioctl_ops = &zoran_ioctl_ops, 3086 .ioctl_ops = &zoran_ioctl_ops,