diff options
Diffstat (limited to 'drivers/media')
102 files changed, 360 insertions, 373 deletions
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 45ecf8db1eae..64d71fb87a96 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c | |||
@@ -540,8 +540,8 @@ static int init_device(struct i2c_client *client, struct adv7180_state *state) | |||
540 | return 0; | 540 | return 0; |
541 | } | 541 | } |
542 | 542 | ||
543 | static __devinit int adv7180_probe(struct i2c_client *client, | 543 | static int adv7180_probe(struct i2c_client *client, |
544 | const struct i2c_device_id *id) | 544 | const struct i2c_device_id *id) |
545 | { | 545 | { |
546 | struct adv7180_state *state; | 546 | struct adv7180_state *state; |
547 | struct v4l2_subdev *sd; | 547 | struct v4l2_subdev *sd; |
@@ -587,7 +587,7 @@ err: | |||
587 | return ret; | 587 | return ret; |
588 | } | 588 | } |
589 | 589 | ||
590 | static __devexit int adv7180_remove(struct i2c_client *client) | 590 | static int adv7180_remove(struct i2c_client *client) |
591 | { | 591 | { |
592 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 592 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
593 | struct adv7180_state *state = to_state(sd); | 593 | struct adv7180_state *state = to_state(sd); |
@@ -652,7 +652,7 @@ static struct i2c_driver adv7180_driver = { | |||
652 | .name = KBUILD_MODNAME, | 652 | .name = KBUILD_MODNAME, |
653 | }, | 653 | }, |
654 | .probe = adv7180_probe, | 654 | .probe = adv7180_probe, |
655 | .remove = __devexit_p(adv7180_remove), | 655 | .remove = adv7180_remove, |
656 | #ifdef CONFIG_PM | 656 | #ifdef CONFIG_PM |
657 | .suspend = adv7180_suspend, | 657 | .suspend = adv7180_suspend, |
658 | .resume = adv7180_resume, | 658 | .resume = adv7180_resume, |
diff --git a/drivers/media/i2c/adv7183.c b/drivers/media/i2c/adv7183.c index 10c3c1db4cdd..6fed5b74e743 100644 --- a/drivers/media/i2c/adv7183.c +++ b/drivers/media/i2c/adv7183.c | |||
@@ -677,7 +677,7 @@ static struct i2c_driver adv7183_driver = { | |||
677 | .name = "adv7183", | 677 | .name = "adv7183", |
678 | }, | 678 | }, |
679 | .probe = adv7183_probe, | 679 | .probe = adv7183_probe, |
680 | .remove = __devexit_p(adv7183_remove), | 680 | .remove = adv7183_remove, |
681 | .id_table = adv7183_id, | 681 | .id_table = adv7183_id, |
682 | }; | 682 | }; |
683 | 683 | ||
diff --git a/drivers/media/i2c/as3645a.c b/drivers/media/i2c/as3645a.c index 3bfdbf9d9bf1..58d523f2648f 100644 --- a/drivers/media/i2c/as3645a.c +++ b/drivers/media/i2c/as3645a.c | |||
@@ -713,7 +713,7 @@ static int as3645a_resume(struct device *dev) | |||
713 | * The number of LEDs reported in platform data is used to compute default | 713 | * The number of LEDs reported in platform data is used to compute default |
714 | * limits. Parameters passed through platform data can override those limits. | 714 | * limits. Parameters passed through platform data can override those limits. |
715 | */ | 715 | */ |
716 | static int __devinit as3645a_init_controls(struct as3645a *flash) | 716 | static int as3645a_init_controls(struct as3645a *flash) |
717 | { | 717 | { |
718 | const struct as3645a_platform_data *pdata = flash->pdata; | 718 | const struct as3645a_platform_data *pdata = flash->pdata; |
719 | struct v4l2_ctrl *ctrl; | 719 | struct v4l2_ctrl *ctrl; |
@@ -804,8 +804,8 @@ static int __devinit as3645a_init_controls(struct as3645a *flash) | |||
804 | return flash->ctrls.error; | 804 | return flash->ctrls.error; |
805 | } | 805 | } |
806 | 806 | ||
807 | static int __devinit as3645a_probe(struct i2c_client *client, | 807 | static int as3645a_probe(struct i2c_client *client, |
808 | const struct i2c_device_id *devid) | 808 | const struct i2c_device_id *devid) |
809 | { | 809 | { |
810 | struct as3645a *flash; | 810 | struct as3645a *flash; |
811 | int ret; | 811 | int ret; |
@@ -846,7 +846,7 @@ done: | |||
846 | return ret; | 846 | return ret; |
847 | } | 847 | } |
848 | 848 | ||
849 | static int __devexit as3645a_remove(struct i2c_client *client) | 849 | static int as3645a_remove(struct i2c_client *client) |
850 | { | 850 | { |
851 | struct v4l2_subdev *subdev = i2c_get_clientdata(client); | 851 | struct v4l2_subdev *subdev = i2c_get_clientdata(client); |
852 | struct as3645a *flash = to_as3645a(subdev); | 852 | struct as3645a *flash = to_as3645a(subdev); |
@@ -877,7 +877,7 @@ static struct i2c_driver as3645a_i2c_driver = { | |||
877 | .pm = &as3645a_pm_ops, | 877 | .pm = &as3645a_pm_ops, |
878 | }, | 878 | }, |
879 | .probe = as3645a_probe, | 879 | .probe = as3645a_probe, |
880 | .remove = __devexit_p(as3645a_remove), | 880 | .remove = as3645a_remove, |
881 | .id_table = as3645a_id_table, | 881 | .id_table = as3645a_id_table, |
882 | }; | 882 | }; |
883 | 883 | ||
diff --git a/drivers/media/i2c/m5mols/m5mols_core.c b/drivers/media/i2c/m5mols/m5mols_core.c index 8131d651de9e..8a8d42fe2633 100644 --- a/drivers/media/i2c/m5mols/m5mols_core.c +++ b/drivers/media/i2c/m5mols/m5mols_core.c | |||
@@ -926,8 +926,8 @@ static irqreturn_t m5mols_irq_handler(int irq, void *data) | |||
926 | return IRQ_HANDLED; | 926 | return IRQ_HANDLED; |
927 | } | 927 | } |
928 | 928 | ||
929 | static int __devinit m5mols_probe(struct i2c_client *client, | 929 | static int m5mols_probe(struct i2c_client *client, |
930 | const struct i2c_device_id *id) | 930 | const struct i2c_device_id *id) |
931 | { | 931 | { |
932 | const struct m5mols_platform_data *pdata = client->dev.platform_data; | 932 | const struct m5mols_platform_data *pdata = client->dev.platform_data; |
933 | struct m5mols_info *info; | 933 | struct m5mols_info *info; |
@@ -1018,7 +1018,7 @@ out_free: | |||
1018 | return ret; | 1018 | return ret; |
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | static int __devexit m5mols_remove(struct i2c_client *client) | 1021 | static int m5mols_remove(struct i2c_client *client) |
1022 | { | 1022 | { |
1023 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 1023 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
1024 | struct m5mols_info *info = to_m5mols(sd); | 1024 | struct m5mols_info *info = to_m5mols(sd); |
@@ -1045,7 +1045,7 @@ static struct i2c_driver m5mols_i2c_driver = { | |||
1045 | .name = MODULE_NAME, | 1045 | .name = MODULE_NAME, |
1046 | }, | 1046 | }, |
1047 | .probe = m5mols_probe, | 1047 | .probe = m5mols_probe, |
1048 | .remove = __devexit_p(m5mols_remove), | 1048 | .remove = m5mols_remove, |
1049 | .id_table = m5mols_id, | 1049 | .id_table = m5mols_id, |
1050 | }; | 1050 | }; |
1051 | 1051 | ||
diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c index f434a19b9bcb..9ac1b8c3a837 100644 --- a/drivers/media/i2c/vs6624.c +++ b/drivers/media/i2c/vs6624.c | |||
@@ -788,7 +788,7 @@ static const struct v4l2_subdev_ops vs6624_ops = { | |||
788 | .video = &vs6624_video_ops, | 788 | .video = &vs6624_video_ops, |
789 | }; | 789 | }; |
790 | 790 | ||
791 | static int __devinit vs6624_probe(struct i2c_client *client, | 791 | static int vs6624_probe(struct i2c_client *client, |
792 | const struct i2c_device_id *id) | 792 | const struct i2c_device_id *id) |
793 | { | 793 | { |
794 | struct vs6624 *sensor; | 794 | struct vs6624 *sensor; |
@@ -881,7 +881,7 @@ static int __devinit vs6624_probe(struct i2c_client *client, | |||
881 | return ret; | 881 | return ret; |
882 | } | 882 | } |
883 | 883 | ||
884 | static int __devexit vs6624_remove(struct i2c_client *client) | 884 | static int vs6624_remove(struct i2c_client *client) |
885 | { | 885 | { |
886 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 886 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
887 | struct vs6624 *sensor = to_vs6624(sd); | 887 | struct vs6624 *sensor = to_vs6624(sd); |
@@ -906,7 +906,7 @@ static struct i2c_driver vs6624_driver = { | |||
906 | .name = "vs6624", | 906 | .name = "vs6624", |
907 | }, | 907 | }, |
908 | .probe = vs6624_probe, | 908 | .probe = vs6624_probe, |
909 | .remove = __devexit_p(vs6624_remove), | 909 | .remove = vs6624_remove, |
910 | .id_table = vs6624_id, | 910 | .id_table = vs6624_id, |
911 | }; | 911 | }; |
912 | 912 | ||
diff --git a/drivers/media/mmc/siano/smssdio.c b/drivers/media/mmc/siano/smssdio.c index d6f3f100699a..15d34935e00b 100644 --- a/drivers/media/mmc/siano/smssdio.c +++ b/drivers/media/mmc/siano/smssdio.c | |||
@@ -50,7 +50,7 @@ | |||
50 | #define SMSSDIO_INT 0x04 | 50 | #define SMSSDIO_INT 0x04 |
51 | #define SMSSDIO_BLOCK_SIZE 128 | 51 | #define SMSSDIO_BLOCK_SIZE 128 |
52 | 52 | ||
53 | static const struct sdio_device_id smssdio_ids[] __devinitconst = { | 53 | static const struct sdio_device_id smssdio_ids[] = { |
54 | {SDIO_DEVICE(SDIO_VENDOR_ID_SIANO, SDIO_DEVICE_ID_SIANO_STELLAR), | 54 | {SDIO_DEVICE(SDIO_VENDOR_ID_SIANO, SDIO_DEVICE_ID_SIANO_STELLAR), |
55 | .driver_data = SMS1XXX_BOARD_SIANO_STELLAR}, | 55 | .driver_data = SMS1XXX_BOARD_SIANO_STELLAR}, |
56 | {SDIO_DEVICE(SDIO_VENDOR_ID_SIANO, SDIO_DEVICE_ID_SIANO_NOVA_A0), | 56 | {SDIO_DEVICE(SDIO_VENDOR_ID_SIANO, SDIO_DEVICE_ID_SIANO_NOVA_A0), |
@@ -224,7 +224,7 @@ static void smssdio_interrupt(struct sdio_func *func) | |||
224 | smscore_onresponse(smsdev->coredev, cb); | 224 | smscore_onresponse(smsdev->coredev, cb); |
225 | } | 225 | } |
226 | 226 | ||
227 | static int __devinit smssdio_probe(struct sdio_func *func, | 227 | static int smssdio_probe(struct sdio_func *func, |
228 | const struct sdio_device_id *id) | 228 | const struct sdio_device_id *id) |
229 | { | 229 | { |
230 | int ret; | 230 | int ret; |
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 | ||
394 | static struct pci_device_id bt878_pci_tbl[] __devinitdata = { | 394 | static 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 | ||
411 | MODULE_DEVICE_TABLE(pci, bt878_pci_tbl); | 411 | MODULE_DEVICE_TABLE(pci, bt878_pci_tbl); |
412 | 412 | ||
413 | static const char * __devinit card_name(const struct pci_device_id *id) | 413 | static 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 | ||
422 | static int __devinit bt878_probe(struct pci_dev *dev, | 422 | static 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 | ||
532 | static void __devexit bt878_remove(struct pci_dev *pci_dev) | 531 | static 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); | |||
87 | static int tea5757_write(struct bttv *btv, int value); | 87 | static int tea5757_write(struct bttv *btv, int value); |
88 | static void identify_by_eeprom(struct bttv *btv, | 88 | static void identify_by_eeprom(struct bttv *btv, |
89 | unsigned char eeprom_data[256]); | 89 | unsigned char eeprom_data[256]); |
90 | static int __devinit pvr_boot(struct bttv *btv); | 90 | static int pvr_boot(struct bttv *btv); |
91 | 91 | ||
92 | /* config variables */ | 92 | /* config variables */ |
93 | static unsigned int triton1; | 93 | static 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 | */ |
2840 | void __devinit bttv_idcard(struct bttv *btv) | 2840 | void 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 */ |
3238 | void __devinit bttv_init_card1(struct bttv *btv) | 3238 | void 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 */ |
3270 | void __devinit bttv_init_card2(struct bttv *btv) | 3270 | void 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 */ |
3574 | void __devinit bttv_init_tuner(struct bttv *btv) | 3574 | void 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 | ||
3638 | static void __devinit hauppauge_eeprom(struct bttv *btv) | 3638 | static 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 | ||
3712 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, | 3712 | static 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 | ||
3750 | static int __devinit pvr_boot(struct bttv *btv) | 3749 | static 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 | ||
3770 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) | 3769 | static 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 | ||
3901 | static void __devinit avermedia_eeprom(struct bttv *btv) | 3900 | static 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 | */ |
3963 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) | 3962 | static 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 | ||
3986 | static void __devinit init_PXC200(struct bttv *btv) | 3985 | static 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 | ||
4854 | int __devinit bttv_handle_chipset(struct bttv *btv) | 4852 | int 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 */ |
4202 | static int __devinit bttv_register_video(struct bttv *btv) | 4202 | static 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 | ||
4268 | static int __devinit bttv_probe(struct pci_dev *dev, | 4268 | static 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 | ||
4457 | static void __devexit bttv_remove(struct pci_dev *pci_dev) | 4456 | static 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 | ||
102 | static struct i2c_algo_bit_data __devinitdata bttv_i2c_algo_bit_template = { | 102 | static 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 */ |
315 | void __devinit bttv_readee(struct bttv *btv, unsigned char *eedata, int addr) | 315 | void 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 */ |
350 | int __devinit init_bttv_i2c(struct bttv *btv) | 350 | int 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 */ |
371 | void __devinit init_bttv_i2c_ir(struct bttv *btv) | 371 | void 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 | ||
414 | int __devexit fini_bttv_i2c(struct bttv *btv) | 414 | int 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 | ||
121 | static struct bt878 __devinit *dvb_bt8xx_878_match(unsigned int bttv_nr, struct pci_dev* bttv_pci_dev) | 121 | static 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 | ||
723 | static int __devinit dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) | 724 | static 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 | ||
814 | static int __devinit dvb_bt8xx_probe(struct bttv_sub_device *sub) | 815 | static 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 *); | |||
53 | EXPORT_SYMBOL(cx18_ext_init); | 53 | EXPORT_SYMBOL(cx18_ext_init); |
54 | 54 | ||
55 | /* add your revision and whatnot here */ | 55 | /* add your revision and whatnot here */ |
56 | static struct pci_device_id cx18_pci_tbl[] __devinitdata = { | 56 | static 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 | ||
694 | static int __devinit cx18_create_in_workq(struct cx18 *cx) | 694 | static 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 | ||
706 | static void __devinit cx18_init_in_work_orders(struct cx18 *cx) | 706 | static 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 | */ |
721 | static int __devinit cx18_init_struct1(struct cx18 *cx) | 721 | static 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. */ |
778 | static void __devinit cx18_init_struct2(struct cx18 *cx) | 778 | static 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 | ||
895 | static int __devinit cx18_probe(struct pci_dev *pci_dev, | 895 | static 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 | ||
2089 | static int __devinit cx23885_initdev(struct pci_dev *pci_dev, | 2089 | static 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 | ||
2170 | static void __devexit cx23885_finidev(struct pci_dev *pci_dev) | 2170 | static 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 | } |
1362 | EXPORT_SYMBOL(cx25821_dev_get); | 1362 | EXPORT_SYMBOL(cx25821_dev_get); |
1363 | 1363 | ||
1364 | static int __devinit cx25821_initdev(struct pci_dev *pci_dev, | 1364 | static 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 | ||
1436 | static void __devexit cx25821_finidev(struct pci_dev *pci_dev) | 1436 | static 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 | */ |
543 | static int __devinit snd_cx88_pcm(snd_cx88_card_t *chip, int device, const char *name) | 543 | static 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 | ||
756 | static const struct pci_device_id cx88_audio_pci_tbl[] __devinitdata = { | 756 | static 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 | ||
794 | static int devno; | 794 | static int devno; |
795 | static int __devinit snd_cx88_create(struct snd_card *card, | 795 | static 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 | ||
865 | static int __devinit cx88_audio_initdev(struct pci_dev *pci, | 864 | static 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 | */ |
934 | static void __devexit cx88_audio_finidev(struct pci_dev *pci) | 933 | static 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 | /* ----------------------------------------------------------- */ |
794 | static int __devinit cx8802_probe(struct pci_dev *pci_dev, | 794 | static 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 | ||
843 | static void __devexit cx8802_remove(struct pci_dev *pci_dev) | 843 | static 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 | ||
904 | static int __init cx8802_init(void) | 904 | static 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 | ||
1699 | static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | 1699 | static 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 | ||
1926 | static void __devexit cx8800_finidev(struct pci_dev *pci_dev) | 1926 | static 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 | ||
1545 | static void __devexit ddb_remove(struct pci_dev *pdev) | 1545 | static 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 | ||
1568 | static int __devinit ddb_probe(struct pci_dev *pdev, | 1568 | static 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 | ||
1682 | static const struct pci_device_id ddb_id_tbl[] __devinitdata = { | 1681 | static 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 | ||
1702 | static __init int module_init_ddbridge(void) | 1701 | static __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 | ||
619 | static int __devinit dm1105_dma_map(struct dm1105_dev *dev) | 619 | static 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 | ||
739 | static int __devinit dm1105_ir_init(struct dm1105_dev *dm1105) | 739 | static 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 | ||
779 | static void __devexit dm1105_ir_exit(struct dm1105_dev *dm1105) | 779 | static 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 | ||
784 | static int __devinit dm1105_hw_init(struct dm1105_dev *dev) | 784 | static 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 | ||
852 | static int __devinit frontend_init(struct dm1105_dev *dev) | 852 | static 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 | ||
952 | static void __devinit dm1105_read_mac(struct dm1105_dev *dev, u8 *mac) | 952 | static 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 | ||
974 | static int __devinit dm1105_probe(struct pci_dev *pdev, | 974 | static 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 | ||
1177 | static void __devexit dm1105_remove(struct pci_dev *pdev) | 1177 | static 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 | ||
1210 | static struct pci_device_id dm1105_id_table[] __devinitdata = { | 1210 | static 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 | ||
1235 | static int __init dm1105_init(void) | 1235 | static 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 *); | |||
73 | EXPORT_SYMBOL(ivtv_ext_init); | 73 | EXPORT_SYMBOL(ivtv_ext_init); |
74 | 74 | ||
75 | /* add your revision and whatnot here */ | 75 | /* add your revision and whatnot here */ |
76 | static struct pci_device_id ivtv_pci_tbl[] __devinitdata = { | 76 | static 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 | */ |
739 | static int __devinit ivtv_init_struct1(struct ivtv *itv) | 739 | static 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. */ |
805 | static void __devinit ivtv_init_struct2(struct ivtv *itv) | 805 | static 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 | ||
1004 | static int __devinit ivtv_probe(struct pci_dev *pdev, | 1004 | static 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 | ||
154 | static int __devinit hopper_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) | 154 | static 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 | ||
233 | static void __devexit hopper_pci_remove(struct pci_dev *pdev) | 234 | static 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 | ||
262 | static int __devinit hopper_init(void) | 263 | static 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 | ||
267 | static void __devexit hopper_exit(void) | 268 | static 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 | ||
162 | static int __devinit mantis_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) | 162 | static 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 | ||
252 | static void __devexit mantis_pci_remove(struct pci_dev *pdev) | 253 | static 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 | ||
292 | static int __devinit mantis_init(void) | 293 | static 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 | ||
297 | static void __devexit mantis_exit(void) | 298 | static 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 | ||
147 | int __devinit mantis_dvb_init(struct mantis_pci *mantis) | 147 | int 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 | } |
272 | EXPORT_SYMBOL_GPL(mantis_dvb_init); | 272 | EXPORT_SYMBOL_GPL(mantis_dvb_init); |
273 | 273 | ||
274 | int __devexit mantis_dvb_exit(struct mantis_pci *mantis) | 274 | int 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 | ||
220 | int __devinit mantis_i2c_init(struct mantis_pci *mantis) | 220 | int 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 | ||
49 | int __devinit mantis_pci_init(struct mantis_pci *mantis) | 49 | int 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 | ||
1731 | static int __devinit meye_probe(struct pci_dev *pcidev, | 1731 | static 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 | ||
1892 | static void __devexit meye_remove(struct pci_dev *pcidev) | 1891 | static 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 | ||
746 | static const struct pci_device_id ngene_id_tbl[] __devinitdata = { | 746 | static 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 | ||
1639 | void __devexit ngene_remove(struct pci_dev *pdev) | 1639 | void 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 | ||
1655 | int __devinit ngene_probe(struct pci_dev *pci_dev, | 1655 | int 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 */ |
890 | int __devinit ngene_probe(struct pci_dev *pci_dev, | 890 | int ngene_probe(struct pci_dev *pci_dev, const struct pci_device_id *id); |
891 | const struct pci_device_id *id); | 891 | void ngene_remove(struct pci_dev *pdev); |
892 | void __devexit ngene_remove(struct pci_dev *pdev); | ||
893 | void ngene_shutdown(struct pci_dev *pdev); | 892 | void ngene_shutdown(struct pci_dev *pdev); |
894 | int ngene_command(struct ngene *dev, struct ngene_command *com); | 893 | int ngene_command(struct ngene *dev, struct ngene_command *com); |
895 | int ngene_command_gpio_set(struct ngene *dev, u8 select, u8 level); | 894 | int 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 | ||
243 | static int __devinit pluto_dma_map(struct pluto *pluto) | 243 | static 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 | ||
371 | static void __devinit pluto_enable_irqs(struct pluto *pluto) | 371 | static 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 | ||
397 | static int __devinit pluto_hw_init(struct pluto *pluto) | 397 | static 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 | ||
508 | static struct tda1004x_config pluto2_fe_config __devinitdata = { | 508 | static 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 | ||
518 | static int __devinit frontend_init(struct pluto *pluto) | 518 | static 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 | ||
539 | static void __devinit pluto_read_rev(struct pluto *pluto) | 539 | static 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 | ||
546 | static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac) | 546 | static 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 | ||
563 | static int __devinit pluto_read_serial(struct pluto *pluto) | 563 | static 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 | ||
591 | static int __devinit pluto2_probe(struct pci_dev *pdev, | 591 | static 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 | ||
745 | static void __devexit pluto2_remove(struct pci_dev *pdev) | 744 | static 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 | ||
780 | static struct pci_device_id pluto2_id_table[] __devinitdata = { | 779 | static 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 | ||
800 | static int __init pluto2_init(void) | 799 | static 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 | ||
1061 | static void __devexit pt1_remove(struct pci_dev *pdev) | 1061 | static 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 | ||
1086 | static int __devinit | 1086 | static int pt1_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
1087 | pt1_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); | |||
1222 | static struct pci_driver pt1_driver = { | 1221 | static 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 | ||
757 | static void __devinit must_configure_manually(int has_eeprom) | 757 | static 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 | ||
863 | static int __devinit saa7134_initdev(struct pci_dev *pci_dev, | 863 | static 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 | ||
1105 | static void __devexit saa7134_finidev(struct pci_dev *pci_dev) | 1105 | static 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 | ||
740 | extern struct saa7134_board saa7134_boards[]; | 740 | extern struct saa7134_board saa7134_boards[]; |
741 | extern const unsigned int saa7134_bcount; | 741 | extern const unsigned int saa7134_bcount; |
742 | extern struct pci_device_id __devinitdata saa7134_pci_tbl[]; | 742 | extern struct pci_device_id saa7134_pci_tbl[]; |
743 | 743 | ||
744 | extern int saa7134_board_init1(struct saa7134_dev *dev); | 744 | extern int saa7134_board_init1(struct saa7134_dev *dev); |
745 | extern int saa7134_board_init2(struct saa7134_dev *dev); | 745 | extern 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 | ||
1188 | static int __devinit saa7164_initdev(struct pci_dev *pci_dev, | 1188 | static 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 | ||
1379 | static void __devexit saa7164_finidev(struct pci_dev *pci_dev) | 1379 | static 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 | */ |
1208 | static int __devinit sta2x11_vip_init_one(struct pci_dev *pdev, | 1208 | static 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 | */ |
1379 | static void __devexit sta2x11_vip_remove_one(struct pci_dev *pdev) | 1379 | static 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) = { | |||
1517 | static struct pci_driver sta2x11_vip_driver = { | 1517 | static 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 | */ |
2370 | static int __devinit av7110_attach(struct saa7146_dev* dev, | 2370 | static 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 | ||
2764 | static int __devexit av7110_detach(struct saa7146_dev* saa) | 2764 | static 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 | ||
327 | int __devinit av7110_ir_init(struct av7110 *av7110) | 327 | int 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 | ||
388 | void __devexit av7110_ir_exit(struct av7110 *av7110) | 388 | void 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 }; | |||
369 | static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END }; | 369 | static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END }; |
370 | static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END }; | 370 | static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END }; |
371 | 371 | ||
372 | static struct card_info zoran_cards[NUM_CARDS] __devinitdata = { | 372 | static 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 | ||
951 | static void __devinit | 951 | static void test_interrupts (struct zoran *zr) |
952 | test_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 | ||
977 | static int __devinit | 976 | static int zr36057_init (struct zoran *zr) |
978 | zr36057_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 | ||
1086 | static void __devexit zoran_remove(struct pci_dev *pdev) | 1084 | static 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 | ||
1132 | static struct videocodec_master * __devinit | 1130 | static struct videocodec_master *zoran_setup_videocodec(struct zoran *zr, |
1133 | zoran_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 | */ |
1195 | static int __devinit zoran_probe(struct pci_dev *pdev, | 1192 | static 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 | ||
1465 | static int __init zoran_init(void) | 1461 | static 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 | ||
3083 | struct video_device zoran_template __devinitdata = { | 3083 | struct 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, |
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index ec476ef5b709..1aad2a65d2f3 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c | |||
@@ -862,7 +862,7 @@ static struct v4l2_file_operations bcap_fops = { | |||
862 | .poll = bcap_poll | 862 | .poll = bcap_poll |
863 | }; | 863 | }; |
864 | 864 | ||
865 | static int __devinit bcap_probe(struct platform_device *pdev) | 865 | static int bcap_probe(struct platform_device *pdev) |
866 | { | 866 | { |
867 | struct bcap_device *bcap_dev; | 867 | struct bcap_device *bcap_dev; |
868 | struct video_device *vfd; | 868 | struct video_device *vfd; |
@@ -1026,7 +1026,7 @@ err_free_dev: | |||
1026 | return ret; | 1026 | return ret; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | static int __devexit bcap_remove(struct platform_device *pdev) | 1029 | static int bcap_remove(struct platform_device *pdev) |
1030 | { | 1030 | { |
1031 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); | 1031 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); |
1032 | struct bcap_device *bcap_dev = container_of(v4l2_dev, | 1032 | struct bcap_device *bcap_dev = container_of(v4l2_dev, |
@@ -1048,7 +1048,7 @@ static struct platform_driver bcap_driver = { | |||
1048 | .owner = THIS_MODULE, | 1048 | .owner = THIS_MODULE, |
1049 | }, | 1049 | }, |
1050 | .probe = bcap_probe, | 1050 | .probe = bcap_probe, |
1051 | .remove = __devexit_p(bcap_remove), | 1051 | .remove = bcap_remove, |
1052 | }; | 1052 | }; |
1053 | module_platform_driver(bcap_driver); | 1053 | module_platform_driver(bcap_driver); |
1054 | 1054 | ||
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 7b8b547f2d51..1cf8293c0fb0 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c | |||
@@ -1891,7 +1891,7 @@ static const struct of_device_id coda_dt_ids[] = { | |||
1891 | MODULE_DEVICE_TABLE(of, coda_dt_ids); | 1891 | MODULE_DEVICE_TABLE(of, coda_dt_ids); |
1892 | #endif | 1892 | #endif |
1893 | 1893 | ||
1894 | static int __devinit coda_probe(struct platform_device *pdev) | 1894 | static int coda_probe(struct platform_device *pdev) |
1895 | { | 1895 | { |
1896 | const struct of_device_id *of_id = | 1896 | const struct of_device_id *of_id = |
1897 | of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev); | 1897 | of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev); |
@@ -2033,7 +2033,7 @@ static int coda_remove(struct platform_device *pdev) | |||
2033 | 2033 | ||
2034 | static struct platform_driver coda_driver = { | 2034 | static struct platform_driver coda_driver = { |
2035 | .probe = coda_probe, | 2035 | .probe = coda_probe, |
2036 | .remove = __devexit_p(coda_remove), | 2036 | .remove = coda_remove, |
2037 | .driver = { | 2037 | .driver = { |
2038 | .name = CODA_NAME, | 2038 | .name = CODA_NAME, |
2039 | .owner = THIS_MODULE, | 2039 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c index 030950dcfb16..f263cabade7a 100644 --- a/drivers/media/platform/davinci/dm355_ccdc.c +++ b/drivers/media/platform/davinci/dm355_ccdc.c | |||
@@ -965,7 +965,7 @@ static struct ccdc_hw_device ccdc_hw_dev = { | |||
965 | }, | 965 | }, |
966 | }; | 966 | }; |
967 | 967 | ||
968 | static int __devinit dm355_ccdc_probe(struct platform_device *pdev) | 968 | static int dm355_ccdc_probe(struct platform_device *pdev) |
969 | { | 969 | { |
970 | void (*setup_pinmux)(void); | 970 | void (*setup_pinmux)(void); |
971 | struct resource *res; | 971 | struct resource *res; |
@@ -1069,7 +1069,7 @@ static struct platform_driver dm355_ccdc_driver = { | |||
1069 | .name = "dm355_ccdc", | 1069 | .name = "dm355_ccdc", |
1070 | .owner = THIS_MODULE, | 1070 | .owner = THIS_MODULE, |
1071 | }, | 1071 | }, |
1072 | .remove = __devexit_p(dm355_ccdc_remove), | 1072 | .remove = dm355_ccdc_remove, |
1073 | .probe = dm355_ccdc_probe, | 1073 | .probe = dm355_ccdc_probe, |
1074 | }; | 1074 | }; |
1075 | 1075 | ||
diff --git a/drivers/media/platform/davinci/dm644x_ccdc.c b/drivers/media/platform/davinci/dm644x_ccdc.c index 0215ab6ebc90..318e80512998 100644 --- a/drivers/media/platform/davinci/dm644x_ccdc.c +++ b/drivers/media/platform/davinci/dm644x_ccdc.c | |||
@@ -957,7 +957,7 @@ static struct ccdc_hw_device ccdc_hw_dev = { | |||
957 | }, | 957 | }, |
958 | }; | 958 | }; |
959 | 959 | ||
960 | static int __devinit dm644x_ccdc_probe(struct platform_device *pdev) | 960 | static int dm644x_ccdc_probe(struct platform_device *pdev) |
961 | { | 961 | { |
962 | struct resource *res; | 962 | struct resource *res; |
963 | int status = 0; | 963 | int status = 0; |
@@ -1078,7 +1078,7 @@ static struct platform_driver dm644x_ccdc_driver = { | |||
1078 | .owner = THIS_MODULE, | 1078 | .owner = THIS_MODULE, |
1079 | .pm = &dm644x_ccdc_pm_ops, | 1079 | .pm = &dm644x_ccdc_pm_ops, |
1080 | }, | 1080 | }, |
1081 | .remove = __devexit_p(dm644x_ccdc_remove), | 1081 | .remove = dm644x_ccdc_remove, |
1082 | .probe = dm644x_ccdc_probe, | 1082 | .probe = dm644x_ccdc_probe, |
1083 | }; | 1083 | }; |
1084 | 1084 | ||
diff --git a/drivers/media/platform/davinci/isif.c b/drivers/media/platform/davinci/isif.c index 2c26c3e1837e..5050f9265f48 100644 --- a/drivers/media/platform/davinci/isif.c +++ b/drivers/media/platform/davinci/isif.c | |||
@@ -1032,7 +1032,7 @@ static struct ccdc_hw_device isif_hw_dev = { | |||
1032 | }, | 1032 | }, |
1033 | }; | 1033 | }; |
1034 | 1034 | ||
1035 | static int __devinit isif_probe(struct platform_device *pdev) | 1035 | static int isif_probe(struct platform_device *pdev) |
1036 | { | 1036 | { |
1037 | void (*setup_pinmux)(void); | 1037 | void (*setup_pinmux)(void); |
1038 | struct resource *res; | 1038 | struct resource *res; |
@@ -1156,7 +1156,7 @@ static struct platform_driver isif_driver = { | |||
1156 | .name = "isif", | 1156 | .name = "isif", |
1157 | .owner = THIS_MODULE, | 1157 | .owner = THIS_MODULE, |
1158 | }, | 1158 | }, |
1159 | .remove = __devexit_p(isif_remove), | 1159 | .remove = isif_remove, |
1160 | .probe = isif_probe, | 1160 | .probe = isif_probe, |
1161 | }; | 1161 | }; |
1162 | 1162 | ||
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 7f5cf9b347b2..841b91a3d255 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c | |||
@@ -807,7 +807,7 @@ static struct vpbe_device_ops vpbe_dev_ops = { | |||
807 | .set_mode = vpbe_set_mode, | 807 | .set_mode = vpbe_set_mode, |
808 | }; | 808 | }; |
809 | 809 | ||
810 | static __devinit int vpbe_probe(struct platform_device *pdev) | 810 | static int vpbe_probe(struct platform_device *pdev) |
811 | { | 811 | { |
812 | struct vpbe_device *vpbe_dev; | 812 | struct vpbe_device *vpbe_dev; |
813 | struct vpbe_config *cfg; | 813 | struct vpbe_config *cfg; |
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 2bfde7958fef..e707a6f2325b 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c | |||
@@ -1662,8 +1662,8 @@ static int vpbe_device_get(struct device *dev, void *data) | |||
1662 | return 0; | 1662 | return 0; |
1663 | } | 1663 | } |
1664 | 1664 | ||
1665 | static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev, | 1665 | static int init_vpbe_layer(int i, struct vpbe_display *disp_dev, |
1666 | struct platform_device *pdev) | 1666 | struct platform_device *pdev) |
1667 | { | 1667 | { |
1668 | struct vpbe_layer *vpbe_display_layer = NULL; | 1668 | struct vpbe_layer *vpbe_display_layer = NULL; |
1669 | struct video_device *vbd = NULL; | 1669 | struct video_device *vbd = NULL; |
@@ -1718,9 +1718,10 @@ static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev, | |||
1718 | return 0; | 1718 | return 0; |
1719 | } | 1719 | } |
1720 | 1720 | ||
1721 | static __devinit int register_device(struct vpbe_layer *vpbe_display_layer, | 1721 | static int register_device(struct vpbe_layer *vpbe_display_layer, |
1722 | struct vpbe_display *disp_dev, | 1722 | struct vpbe_display *disp_dev, |
1723 | struct platform_device *pdev) { | 1723 | struct platform_device *pdev) |
1724 | { | ||
1724 | int err; | 1725 | int err; |
1725 | 1726 | ||
1726 | v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, | 1727 | v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, |
@@ -1752,7 +1753,7 @@ static __devinit int register_device(struct vpbe_layer *vpbe_display_layer, | |||
1752 | * This function creates device entries by register itself to the V4L2 driver | 1753 | * This function creates device entries by register itself to the V4L2 driver |
1753 | * and initializes fields of each layer objects | 1754 | * and initializes fields of each layer objects |
1754 | */ | 1755 | */ |
1755 | static __devinit int vpbe_display_probe(struct platform_device *pdev) | 1756 | static int vpbe_display_probe(struct platform_device *pdev) |
1756 | { | 1757 | { |
1757 | struct vpbe_layer *vpbe_display_layer; | 1758 | struct vpbe_layer *vpbe_display_layer; |
1758 | struct vpbe_display *disp_dev; | 1759 | struct vpbe_display *disp_dev; |
@@ -1886,7 +1887,7 @@ static struct platform_driver vpbe_display_driver = { | |||
1886 | .bus = &platform_bus_type, | 1887 | .bus = &platform_bus_type, |
1887 | }, | 1888 | }, |
1888 | .probe = vpbe_display_probe, | 1889 | .probe = vpbe_display_probe, |
1889 | .remove = __devexit_p(vpbe_display_remove), | 1890 | .remove = vpbe_display_remove, |
1890 | }; | 1891 | }; |
1891 | 1892 | ||
1892 | module_platform_driver(vpbe_display_driver); | 1893 | module_platform_driver(vpbe_display_driver); |
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c index 8be492cd8ed4..be9d3e1b4868 100644 --- a/drivers/media/platform/davinci/vpfe_capture.c +++ b/drivers/media/platform/davinci/vpfe_capture.c | |||
@@ -1831,7 +1831,7 @@ static struct vpfe_device *vpfe_initialize(void) | |||
1831 | * itself to the V4L2 driver and initializes fields of each | 1831 | * itself to the V4L2 driver and initializes fields of each |
1832 | * device objects | 1832 | * device objects |
1833 | */ | 1833 | */ |
1834 | static __devinit int vpfe_probe(struct platform_device *pdev) | 1834 | static int vpfe_probe(struct platform_device *pdev) |
1835 | { | 1835 | { |
1836 | struct vpfe_subdev_info *sdinfo; | 1836 | struct vpfe_subdev_info *sdinfo; |
1837 | struct vpfe_config *vpfe_cfg; | 1837 | struct vpfe_config *vpfe_cfg; |
@@ -2038,7 +2038,7 @@ probe_free_dev_mem: | |||
2038 | /* | 2038 | /* |
2039 | * vpfe_remove : It un-register device from V4L2 driver | 2039 | * vpfe_remove : It un-register device from V4L2 driver |
2040 | */ | 2040 | */ |
2041 | static int __devexit vpfe_remove(struct platform_device *pdev) | 2041 | static int vpfe_remove(struct platform_device *pdev) |
2042 | { | 2042 | { |
2043 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); | 2043 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); |
2044 | 2044 | ||
@@ -2075,7 +2075,7 @@ static struct platform_driver vpfe_driver = { | |||
2075 | .pm = &vpfe_dev_pm_ops, | 2075 | .pm = &vpfe_dev_pm_ops, |
2076 | }, | 2076 | }, |
2077 | .probe = vpfe_probe, | 2077 | .probe = vpfe_probe, |
2078 | .remove = __devexit_p(vpfe_remove), | 2078 | .remove = vpfe_remove, |
2079 | }; | 2079 | }; |
2080 | 2080 | ||
2081 | module_platform_driver(vpfe_driver); | 2081 | module_platform_driver(vpfe_driver); |
diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c index 0d6cc8e4deb2..28638a86f129 100644 --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c | |||
@@ -419,7 +419,7 @@ int vpif_channel_getfid(u8 channel_id) | |||
419 | } | 419 | } |
420 | EXPORT_SYMBOL(vpif_channel_getfid); | 420 | EXPORT_SYMBOL(vpif_channel_getfid); |
421 | 421 | ||
422 | static int __devinit vpif_probe(struct platform_device *pdev) | 422 | static int vpif_probe(struct platform_device *pdev) |
423 | { | 423 | { |
424 | int status = 0; | 424 | int status = 0; |
425 | 425 | ||
@@ -457,7 +457,7 @@ fail: | |||
457 | return status; | 457 | return status; |
458 | } | 458 | } |
459 | 459 | ||
460 | static int __devexit vpif_remove(struct platform_device *pdev) | 460 | static int vpif_remove(struct platform_device *pdev) |
461 | { | 461 | { |
462 | if (vpif_clk) { | 462 | if (vpif_clk) { |
463 | clk_disable_unprepare(vpif_clk); | 463 | clk_disable_unprepare(vpif_clk); |
@@ -498,7 +498,7 @@ static struct platform_driver vpif_driver = { | |||
498 | .owner = THIS_MODULE, | 498 | .owner = THIS_MODULE, |
499 | .pm = vpif_pm_ops, | 499 | .pm = vpif_pm_ops, |
500 | }, | 500 | }, |
501 | .remove = __devexit_p(vpif_remove), | 501 | .remove = vpif_remove, |
502 | .probe = vpif_probe, | 502 | .probe = vpif_probe, |
503 | }; | 503 | }; |
504 | 504 | ||
diff --git a/drivers/media/platform/davinci/vpss.c b/drivers/media/platform/davinci/vpss.c index 146e4b01ac17..cdbff88e0f1e 100644 --- a/drivers/media/platform/davinci/vpss.c +++ b/drivers/media/platform/davinci/vpss.c | |||
@@ -357,7 +357,7 @@ void dm365_vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size) | |||
357 | } | 357 | } |
358 | EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size); | 358 | EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size); |
359 | 359 | ||
360 | static int __devinit vpss_probe(struct platform_device *pdev) | 360 | static int vpss_probe(struct platform_device *pdev) |
361 | { | 361 | { |
362 | struct resource *r1, *r2; | 362 | struct resource *r1, *r2; |
363 | char *platform_name; | 363 | char *platform_name; |
@@ -445,7 +445,7 @@ fail1: | |||
445 | return status; | 445 | return status; |
446 | } | 446 | } |
447 | 447 | ||
448 | static int __devexit vpss_remove(struct platform_device *pdev) | 448 | static int vpss_remove(struct platform_device *pdev) |
449 | { | 449 | { |
450 | struct resource *res; | 450 | struct resource *res; |
451 | 451 | ||
@@ -465,7 +465,7 @@ static struct platform_driver vpss_driver = { | |||
465 | .name = "vpss", | 465 | .name = "vpss", |
466 | .owner = THIS_MODULE, | 466 | .owner = THIS_MODULE, |
467 | }, | 467 | }, |
468 | .remove = __devexit_p(vpss_remove), | 468 | .remove = vpss_remove, |
469 | .probe = vpss_probe, | 469 | .probe = vpss_probe, |
470 | }; | 470 | }; |
471 | 471 | ||
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index cc7b218d047c..2b1b9f30e1f9 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c | |||
@@ -1151,7 +1151,7 @@ err_clk: | |||
1151 | return ret; | 1151 | return ret; |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | static int __devexit gsc_remove(struct platform_device *pdev) | 1154 | static int gsc_remove(struct platform_device *pdev) |
1155 | { | 1155 | { |
1156 | struct gsc_dev *gsc = platform_get_drvdata(pdev); | 1156 | struct gsc_dev *gsc = platform_get_drvdata(pdev); |
1157 | 1157 | ||
@@ -1237,7 +1237,7 @@ static const struct dev_pm_ops gsc_pm_ops = { | |||
1237 | 1237 | ||
1238 | static struct platform_driver gsc_driver = { | 1238 | static struct platform_driver gsc_driver = { |
1239 | .probe = gsc_probe, | 1239 | .probe = gsc_probe, |
1240 | .remove = __devexit_p(gsc_remove), | 1240 | .remove = gsc_remove, |
1241 | .id_table = gsc_driver_ids, | 1241 | .id_table = gsc_driver_ids, |
1242 | .driver = { | 1242 | .driver = { |
1243 | .name = GSC_MODULE_NAME, | 1243 | .name = GSC_MODULE_NAME, |
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index a8ddb0cacab8..9115a2c8d075 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c | |||
@@ -1478,7 +1478,7 @@ static struct video_device viu_template = { | |||
1478 | .current_norm = V4L2_STD_NTSC_M, | 1478 | .current_norm = V4L2_STD_NTSC_M, |
1479 | }; | 1479 | }; |
1480 | 1480 | ||
1481 | static int __devinit viu_of_probe(struct platform_device *op) | 1481 | static int viu_of_probe(struct platform_device *op) |
1482 | { | 1482 | { |
1483 | struct viu_dev *viu_dev; | 1483 | struct viu_dev *viu_dev; |
1484 | struct video_device *vdev; | 1484 | struct video_device *vdev; |
@@ -1615,7 +1615,7 @@ err: | |||
1615 | return ret; | 1615 | return ret; |
1616 | } | 1616 | } |
1617 | 1617 | ||
1618 | static int __devexit viu_of_remove(struct platform_device *op) | 1618 | static int viu_of_remove(struct platform_device *op) |
1619 | { | 1619 | { |
1620 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); | 1620 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); |
1621 | struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); | 1621 | struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); |
@@ -1668,7 +1668,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_viu_of_match); | |||
1668 | 1668 | ||
1669 | static struct platform_driver viu_of_platform_driver = { | 1669 | static struct platform_driver viu_of_platform_driver = { |
1670 | .probe = viu_of_probe, | 1670 | .probe = viu_of_probe, |
1671 | .remove = __devexit_p(viu_of_remove), | 1671 | .remove = viu_of_remove, |
1672 | #ifdef CONFIG_PM | 1672 | #ifdef CONFIG_PM |
1673 | .suspend = viu_suspend, | 1673 | .suspend = viu_suspend, |
1674 | .resume = viu_resume, | 1674 | .resume = viu_resume, |
diff --git a/drivers/media/platform/omap24xxcam.c b/drivers/media/platform/omap24xxcam.c index 70f45c381318..8b7ccea982e7 100644 --- a/drivers/media/platform/omap24xxcam.c +++ b/drivers/media/platform/omap24xxcam.c | |||
@@ -1736,7 +1736,7 @@ static struct v4l2_int_device omap24xxcam = { | |||
1736 | * | 1736 | * |
1737 | */ | 1737 | */ |
1738 | 1738 | ||
1739 | static int __devinit omap24xxcam_probe(struct platform_device *pdev) | 1739 | static int omap24xxcam_probe(struct platform_device *pdev) |
1740 | { | 1740 | { |
1741 | struct omap24xxcam_device *cam; | 1741 | struct omap24xxcam_device *cam; |
1742 | struct resource *mem; | 1742 | struct resource *mem; |
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 2e8c0cb79c3d..e4aaee91201d 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c | |||
@@ -1990,7 +1990,7 @@ error_csiphy: | |||
1990 | * | 1990 | * |
1991 | * Always returns 0. | 1991 | * Always returns 0. |
1992 | */ | 1992 | */ |
1993 | static int __devexit isp_remove(struct platform_device *pdev) | 1993 | static int isp_remove(struct platform_device *pdev) |
1994 | { | 1994 | { |
1995 | struct isp_device *isp = platform_get_drvdata(pdev); | 1995 | struct isp_device *isp = platform_get_drvdata(pdev); |
1996 | int i; | 1996 | int i; |
@@ -2071,7 +2071,7 @@ static int isp_map_mem_resource(struct platform_device *pdev, | |||
2071 | * -EINVAL if couldn't install ISR, | 2071 | * -EINVAL if couldn't install ISR, |
2072 | * or clk_get return error value. | 2072 | * or clk_get return error value. |
2073 | */ | 2073 | */ |
2074 | static int __devinit isp_probe(struct platform_device *pdev) | 2074 | static int isp_probe(struct platform_device *pdev) |
2075 | { | 2075 | { |
2076 | struct isp_platform_data *pdata = pdev->dev.platform_data; | 2076 | struct isp_platform_data *pdata = pdev->dev.platform_data; |
2077 | struct isp_device *isp; | 2077 | struct isp_device *isp; |
@@ -2250,7 +2250,7 @@ MODULE_DEVICE_TABLE(platform, omap3isp_id_table); | |||
2250 | 2250 | ||
2251 | static struct platform_driver omap3isp_driver = { | 2251 | static struct platform_driver omap3isp_driver = { |
2252 | .probe = isp_probe, | 2252 | .probe = isp_probe, |
2253 | .remove = __devexit_p(isp_remove), | 2253 | .remove = isp_remove, |
2254 | .id_table = omap3isp_id_table, | 2254 | .id_table = omap3isp_id_table, |
2255 | .driver = { | 2255 | .driver = { |
2256 | .owner = THIS_MODULE, | 2256 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c index 0dd65376c067..e2716c35f8f1 100644 --- a/drivers/media/platform/s3c-camif/camif-core.c +++ b/drivers/media/platform/s3c-camif/camif-core.c | |||
@@ -531,7 +531,7 @@ err_sd: | |||
531 | return ret; | 531 | return ret; |
532 | } | 532 | } |
533 | 533 | ||
534 | static int __devexit s3c_camif_remove(struct platform_device *pdev) | 534 | static int s3c_camif_remove(struct platform_device *pdev) |
535 | { | 535 | { |
536 | struct camif_dev *camif = platform_get_drvdata(pdev); | 536 | struct camif_dev *camif = platform_get_drvdata(pdev); |
537 | struct s3c_camif_plat_data *pdata = &camif->pdata; | 537 | struct s3c_camif_plat_data *pdata = &camif->pdata; |
@@ -645,7 +645,7 @@ static const struct dev_pm_ops s3c_camif_pm_ops = { | |||
645 | 645 | ||
646 | static struct platform_driver s3c_camif_driver = { | 646 | static struct platform_driver s3c_camif_driver = { |
647 | .probe = s3c_camif_probe, | 647 | .probe = s3c_camif_probe, |
648 | .remove = __devexit_p(s3c_camif_remove), | 648 | .remove = s3c_camif_remove, |
649 | .id_table = s3c_camif_driver_ids, | 649 | .id_table = s3c_camif_driver_ids, |
650 | .driver = { | 650 | .driver = { |
651 | .name = S3C_CAMIF_DRIVER_NAME, | 651 | .name = S3C_CAMIF_DRIVER_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-core.c b/drivers/media/platform/s5p-fimc/fimc-core.c index 8d0d2b94a135..545b46ae12a1 100644 --- a/drivers/media/platform/s5p-fimc/fimc-core.c +++ b/drivers/media/platform/s5p-fimc/fimc-core.c | |||
@@ -1035,7 +1035,7 @@ static int fimc_suspend(struct device *dev) | |||
1035 | } | 1035 | } |
1036 | #endif /* CONFIG_PM_SLEEP */ | 1036 | #endif /* CONFIG_PM_SLEEP */ |
1037 | 1037 | ||
1038 | static int __devexit fimc_remove(struct platform_device *pdev) | 1038 | static int fimc_remove(struct platform_device *pdev) |
1039 | { | 1039 | { |
1040 | struct fimc_dev *fimc = platform_get_drvdata(pdev); | 1040 | struct fimc_dev *fimc = platform_get_drvdata(pdev); |
1041 | 1041 | ||
@@ -1234,7 +1234,7 @@ static const struct dev_pm_ops fimc_pm_ops = { | |||
1234 | 1234 | ||
1235 | static struct platform_driver fimc_driver = { | 1235 | static struct platform_driver fimc_driver = { |
1236 | .probe = fimc_probe, | 1236 | .probe = fimc_probe, |
1237 | .remove = __devexit_p(fimc_remove), | 1237 | .remove = fimc_remove, |
1238 | .id_table = fimc_driver_ids, | 1238 | .id_table = fimc_driver_ids, |
1239 | .driver = { | 1239 | .driver = { |
1240 | .name = FIMC_MODULE_NAME, | 1240 | .name = FIMC_MODULE_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index 1b309a72f09f..ed67220d0a64 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c | |||
@@ -1406,7 +1406,7 @@ static int fimc_lite_clk_get(struct fimc_lite *fimc) | |||
1406 | return ret; | 1406 | return ret; |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | static int __devinit fimc_lite_probe(struct platform_device *pdev) | 1409 | static int fimc_lite_probe(struct platform_device *pdev) |
1410 | { | 1410 | { |
1411 | struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev); | 1411 | struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev); |
1412 | struct fimc_lite *fimc; | 1412 | struct fimc_lite *fimc; |
@@ -1547,7 +1547,7 @@ static int fimc_lite_suspend(struct device *dev) | |||
1547 | } | 1547 | } |
1548 | #endif /* CONFIG_PM_SLEEP */ | 1548 | #endif /* CONFIG_PM_SLEEP */ |
1549 | 1549 | ||
1550 | static int __devexit fimc_lite_remove(struct platform_device *pdev) | 1550 | static int fimc_lite_remove(struct platform_device *pdev) |
1551 | { | 1551 | { |
1552 | struct fimc_lite *fimc = platform_get_drvdata(pdev); | 1552 | struct fimc_lite *fimc = platform_get_drvdata(pdev); |
1553 | struct device *dev = &pdev->dev; | 1553 | struct device *dev = &pdev->dev; |
@@ -1595,7 +1595,7 @@ static const struct dev_pm_ops fimc_lite_pm_ops = { | |||
1595 | 1595 | ||
1596 | static struct platform_driver fimc_lite_driver = { | 1596 | static struct platform_driver fimc_lite_driver = { |
1597 | .probe = fimc_lite_probe, | 1597 | .probe = fimc_lite_probe, |
1598 | .remove = __devexit_p(fimc_lite_remove), | 1598 | .remove = fimc_lite_remove, |
1599 | .id_table = fimc_lite_driver_ids, | 1599 | .id_table = fimc_lite_driver_ids, |
1600 | .driver = { | 1600 | .driver = { |
1601 | .name = FIMC_LITE_DRV_NAME, | 1601 | .name = FIMC_LITE_DRV_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-mdevice.c b/drivers/media/platform/s5p-fimc/fimc-mdevice.c index 1bd5678cfeb9..4ab99f3a7b09 100644 --- a/drivers/media/platform/s5p-fimc/fimc-mdevice.c +++ b/drivers/media/platform/s5p-fimc/fimc-mdevice.c | |||
@@ -1000,7 +1000,7 @@ err_md: | |||
1000 | return ret; | 1000 | return ret; |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | static int __devexit fimc_md_remove(struct platform_device *pdev) | 1003 | static int fimc_md_remove(struct platform_device *pdev) |
1004 | { | 1004 | { |
1005 | struct fimc_md *fmd = platform_get_drvdata(pdev); | 1005 | struct fimc_md *fmd = platform_get_drvdata(pdev); |
1006 | 1006 | ||
@@ -1015,7 +1015,7 @@ static int __devexit fimc_md_remove(struct platform_device *pdev) | |||
1015 | 1015 | ||
1016 | static struct platform_driver fimc_md_driver = { | 1016 | static struct platform_driver fimc_md_driver = { |
1017 | .probe = fimc_md_probe, | 1017 | .probe = fimc_md_probe, |
1018 | .remove = __devexit_p(fimc_md_remove), | 1018 | .remove = fimc_md_remove, |
1019 | .driver = { | 1019 | .driver = { |
1020 | .name = "s5p-fimc-md", | 1020 | .name = "s5p-fimc-md", |
1021 | .owner = THIS_MODULE, | 1021 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-fimc/mipi-csis.c b/drivers/media/platform/s5p-fimc/mipi-csis.c index 4c961b1b68e6..ec3fa7d75306 100644 --- a/drivers/media/platform/s5p-fimc/mipi-csis.c +++ b/drivers/media/platform/s5p-fimc/mipi-csis.c | |||
@@ -654,7 +654,7 @@ static irqreturn_t s5pcsis_irq_handler(int irq, void *dev_id) | |||
654 | return IRQ_HANDLED; | 654 | return IRQ_HANDLED; |
655 | } | 655 | } |
656 | 656 | ||
657 | static int __devinit s5pcsis_probe(struct platform_device *pdev) | 657 | static int s5pcsis_probe(struct platform_device *pdev) |
658 | { | 658 | { |
659 | struct s5p_platform_mipi_csis *pdata; | 659 | struct s5p_platform_mipi_csis *pdata; |
660 | struct resource *mem_res; | 660 | struct resource *mem_res; |
@@ -851,7 +851,7 @@ static int s5pcsis_runtime_resume(struct device *dev) | |||
851 | } | 851 | } |
852 | #endif | 852 | #endif |
853 | 853 | ||
854 | static int __devexit s5pcsis_remove(struct platform_device *pdev) | 854 | static int s5pcsis_remove(struct platform_device *pdev) |
855 | { | 855 | { |
856 | struct v4l2_subdev *sd = platform_get_drvdata(pdev); | 856 | struct v4l2_subdev *sd = platform_get_drvdata(pdev); |
857 | struct csis_state *state = sd_to_csis_state(sd); | 857 | struct csis_state *state = sd_to_csis_state(sd); |
@@ -876,7 +876,7 @@ static const struct dev_pm_ops s5pcsis_pm_ops = { | |||
876 | 876 | ||
877 | static struct platform_driver s5pcsis_driver = { | 877 | static struct platform_driver s5pcsis_driver = { |
878 | .probe = s5pcsis_probe, | 878 | .probe = s5pcsis_probe, |
879 | .remove = __devexit_p(s5pcsis_remove), | 879 | .remove = s5pcsis_remove, |
880 | .driver = { | 880 | .driver = { |
881 | .name = CSIS_DRIVER_NAME, | 881 | .name = CSIS_DRIVER_NAME, |
882 | .owner = THIS_MODULE, | 882 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 3afe879d54d7..379f57433711 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c | |||
@@ -1203,7 +1203,7 @@ err_res: | |||
1203 | } | 1203 | } |
1204 | 1204 | ||
1205 | /* Remove the driver */ | 1205 | /* Remove the driver */ |
1206 | static int __devexit s5p_mfc_remove(struct platform_device *pdev) | 1206 | static int s5p_mfc_remove(struct platform_device *pdev) |
1207 | { | 1207 | { |
1208 | struct s5p_mfc_dev *dev = platform_get_drvdata(pdev); | 1208 | struct s5p_mfc_dev *dev = platform_get_drvdata(pdev); |
1209 | 1209 | ||
@@ -1368,7 +1368,7 @@ MODULE_DEVICE_TABLE(platform, mfc_driver_ids); | |||
1368 | 1368 | ||
1369 | static struct platform_driver s5p_mfc_driver = { | 1369 | static struct platform_driver s5p_mfc_driver = { |
1370 | .probe = s5p_mfc_probe, | 1370 | .probe = s5p_mfc_probe, |
1371 | .remove = __devexit_p(s5p_mfc_remove), | 1371 | .remove = s5p_mfc_remove, |
1372 | .id_table = mfc_driver_ids, | 1372 | .id_table = mfc_driver_ids, |
1373 | .driver = { | 1373 | .driver = { |
1374 | .name = S5P_MFC_NAME, | 1374 | .name = S5P_MFC_NAME, |
diff --git a/drivers/media/platform/s5p-tv/hdmi_drv.c b/drivers/media/platform/s5p-tv/hdmi_drv.c index 8a9cf43018f6..7c1116c73bf3 100644 --- a/drivers/media/platform/s5p-tv/hdmi_drv.c +++ b/drivers/media/platform/s5p-tv/hdmi_drv.c | |||
@@ -830,7 +830,7 @@ fail: | |||
830 | return -ENODEV; | 830 | return -ENODEV; |
831 | } | 831 | } |
832 | 832 | ||
833 | static int __devinit hdmi_probe(struct platform_device *pdev) | 833 | static int hdmi_probe(struct platform_device *pdev) |
834 | { | 834 | { |
835 | struct device *dev = &pdev->dev; | 835 | struct device *dev = &pdev->dev; |
836 | struct resource *res; | 836 | struct resource *res; |
@@ -979,7 +979,7 @@ fail: | |||
979 | return ret; | 979 | return ret; |
980 | } | 980 | } |
981 | 981 | ||
982 | static int __devexit hdmi_remove(struct platform_device *pdev) | 982 | static int hdmi_remove(struct platform_device *pdev) |
983 | { | 983 | { |
984 | struct device *dev = &pdev->dev; | 984 | struct device *dev = &pdev->dev; |
985 | struct v4l2_subdev *sd = dev_get_drvdata(dev); | 985 | struct v4l2_subdev *sd = dev_get_drvdata(dev); |
@@ -997,7 +997,7 @@ static int __devexit hdmi_remove(struct platform_device *pdev) | |||
997 | 997 | ||
998 | static struct platform_driver hdmi_driver __refdata = { | 998 | static struct platform_driver hdmi_driver __refdata = { |
999 | .probe = hdmi_probe, | 999 | .probe = hdmi_probe, |
1000 | .remove = __devexit_p(hdmi_remove), | 1000 | .remove = hdmi_remove, |
1001 | .id_table = hdmi_driver_types, | 1001 | .id_table = hdmi_driver_types, |
1002 | .driver = { | 1002 | .driver = { |
1003 | .name = "s5p-hdmi", | 1003 | .name = "s5p-hdmi", |
diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/platform/s5p-tv/hdmiphy_drv.c index f67b38631801..06b5d2dbb2d9 100644 --- a/drivers/media/platform/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/platform/s5p-tv/hdmiphy_drv.c | |||
@@ -279,8 +279,8 @@ static const struct v4l2_subdev_ops hdmiphy_ops = { | |||
279 | .video = &hdmiphy_video_ops, | 279 | .video = &hdmiphy_video_ops, |
280 | }; | 280 | }; |
281 | 281 | ||
282 | static int __devinit hdmiphy_probe(struct i2c_client *client, | 282 | static int hdmiphy_probe(struct i2c_client *client, |
283 | const struct i2c_device_id *id) | 283 | const struct i2c_device_id *id) |
284 | { | 284 | { |
285 | struct hdmiphy_ctx *ctx; | 285 | struct hdmiphy_ctx *ctx; |
286 | 286 | ||
@@ -295,7 +295,7 @@ static int __devinit hdmiphy_probe(struct i2c_client *client, | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int __devexit hdmiphy_remove(struct i2c_client *client) | 298 | static int hdmiphy_remove(struct i2c_client *client) |
299 | { | 299 | { |
300 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 300 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
301 | struct hdmiphy_ctx *ctx = sd_to_ctx(sd); | 301 | struct hdmiphy_ctx *ctx = sd_to_ctx(sd); |
@@ -322,7 +322,7 @@ static struct i2c_driver hdmiphy_driver = { | |||
322 | .owner = THIS_MODULE, | 322 | .owner = THIS_MODULE, |
323 | }, | 323 | }, |
324 | .probe = hdmiphy_probe, | 324 | .probe = hdmiphy_probe, |
325 | .remove = __devexit_p(hdmiphy_remove), | 325 | .remove = hdmiphy_remove, |
326 | .id_table = hdmiphy_id, | 326 | .id_table = hdmiphy_id, |
327 | }; | 327 | }; |
328 | 328 | ||
diff --git a/drivers/media/platform/s5p-tv/mixer.h b/drivers/media/platform/s5p-tv/mixer.h index ddb422e23550..b671e20e9318 100644 --- a/drivers/media/platform/s5p-tv/mixer.h +++ b/drivers/media/platform/s5p-tv/mixer.h | |||
@@ -290,7 +290,7 @@ static inline struct v4l2_subdev *to_outsd(struct mxr_device *mdev) | |||
290 | struct mxr_platform_data; | 290 | struct mxr_platform_data; |
291 | 291 | ||
292 | /** acquiring common video resources */ | 292 | /** acquiring common video resources */ |
293 | int __devinit mxr_acquire_video(struct mxr_device *mdev, | 293 | int mxr_acquire_video(struct mxr_device *mdev, |
294 | struct mxr_output_conf *output_cont, int output_count); | 294 | struct mxr_output_conf *output_cont, int output_count); |
295 | 295 | ||
296 | /** releasing common video resources */ | 296 | /** releasing common video resources */ |
diff --git a/drivers/media/platform/s5p-tv/mixer_drv.c b/drivers/media/platform/s5p-tv/mixer_drv.c index ca0f29717448..02faea03aa7d 100644 --- a/drivers/media/platform/s5p-tv/mixer_drv.c +++ b/drivers/media/platform/s5p-tv/mixer_drv.c | |||
@@ -151,8 +151,8 @@ void mxr_power_put(struct mxr_device *mdev) | |||
151 | 151 | ||
152 | /* --------- RESOURCE MANAGEMENT -------------*/ | 152 | /* --------- RESOURCE MANAGEMENT -------------*/ |
153 | 153 | ||
154 | static int __devinit mxr_acquire_plat_resources(struct mxr_device *mdev, | 154 | static int mxr_acquire_plat_resources(struct mxr_device *mdev, |
155 | struct platform_device *pdev) | 155 | struct platform_device *pdev) |
156 | { | 156 | { |
157 | struct resource *res; | 157 | struct resource *res; |
158 | int ret; | 158 | int ret; |
@@ -271,8 +271,8 @@ fail: | |||
271 | return -ENODEV; | 271 | return -ENODEV; |
272 | } | 272 | } |
273 | 273 | ||
274 | static int __devinit mxr_acquire_resources(struct mxr_device *mdev, | 274 | static int mxr_acquire_resources(struct mxr_device *mdev, |
275 | struct platform_device *pdev) | 275 | struct platform_device *pdev) |
276 | { | 276 | { |
277 | int ret; | 277 | int ret; |
278 | ret = mxr_acquire_plat_resources(mdev, pdev); | 278 | ret = mxr_acquire_plat_resources(mdev, pdev); |
@@ -310,8 +310,8 @@ static void mxr_release_layers(struct mxr_device *mdev) | |||
310 | mxr_layer_release(mdev->layer[i]); | 310 | mxr_layer_release(mdev->layer[i]); |
311 | } | 311 | } |
312 | 312 | ||
313 | static int __devinit mxr_acquire_layers(struct mxr_device *mdev, | 313 | static int mxr_acquire_layers(struct mxr_device *mdev, |
314 | struct mxr_platform_data *pdata) | 314 | struct mxr_platform_data *pdata) |
315 | { | 315 | { |
316 | mdev->layer[0] = mxr_graph_layer_create(mdev, 0); | 316 | mdev->layer[0] = mxr_graph_layer_create(mdev, 0); |
317 | mdev->layer[1] = mxr_graph_layer_create(mdev, 1); | 317 | mdev->layer[1] = mxr_graph_layer_create(mdev, 1); |
@@ -372,7 +372,7 @@ static const struct dev_pm_ops mxr_pm_ops = { | |||
372 | 372 | ||
373 | /* --------- DRIVER INITIALIZATION ---------- */ | 373 | /* --------- DRIVER INITIALIZATION ---------- */ |
374 | 374 | ||
375 | static int __devinit mxr_probe(struct platform_device *pdev) | 375 | static int mxr_probe(struct platform_device *pdev) |
376 | { | 376 | { |
377 | struct device *dev = &pdev->dev; | 377 | struct device *dev = &pdev->dev; |
378 | struct mxr_platform_data *pdata = dev->platform_data; | 378 | struct mxr_platform_data *pdata = dev->platform_data; |
@@ -431,7 +431,7 @@ fail: | |||
431 | return ret; | 431 | return ret; |
432 | } | 432 | } |
433 | 433 | ||
434 | static int __devexit mxr_remove(struct platform_device *pdev) | 434 | static int mxr_remove(struct platform_device *pdev) |
435 | { | 435 | { |
436 | struct device *dev = &pdev->dev; | 436 | struct device *dev = &pdev->dev; |
437 | struct mxr_device *mdev = to_mdev(dev); | 437 | struct mxr_device *mdev = to_mdev(dev); |
@@ -450,7 +450,7 @@ static int __devexit mxr_remove(struct platform_device *pdev) | |||
450 | 450 | ||
451 | static struct platform_driver mxr_driver __refdata = { | 451 | static struct platform_driver mxr_driver __refdata = { |
452 | .probe = mxr_probe, | 452 | .probe = mxr_probe, |
453 | .remove = __devexit_p(mxr_remove), | 453 | .remove = mxr_remove, |
454 | .driver = { | 454 | .driver = { |
455 | .name = MXR_DRIVER_NAME, | 455 | .name = MXR_DRIVER_NAME, |
456 | .owner = THIS_MODULE, | 456 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c index 7379e77bf4e1..1f3b7436511c 100644 --- a/drivers/media/platform/s5p-tv/mixer_video.c +++ b/drivers/media/platform/s5p-tv/mixer_video.c | |||
@@ -62,8 +62,8 @@ done: | |||
62 | return sd; | 62 | return sd; |
63 | } | 63 | } |
64 | 64 | ||
65 | int __devinit mxr_acquire_video(struct mxr_device *mdev, | 65 | int mxr_acquire_video(struct mxr_device *mdev, |
66 | struct mxr_output_conf *output_conf, int output_count) | 66 | struct mxr_output_conf *output_conf, int output_count) |
67 | { | 67 | { |
68 | struct device *dev = mdev->dev; | 68 | struct device *dev = mdev->dev; |
69 | struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; | 69 | struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; |
diff --git a/drivers/media/platform/s5p-tv/sdo_drv.c b/drivers/media/platform/s5p-tv/sdo_drv.c index ad68bbed014e..91a6939a270a 100644 --- a/drivers/media/platform/s5p-tv/sdo_drv.c +++ b/drivers/media/platform/s5p-tv/sdo_drv.c | |||
@@ -292,7 +292,7 @@ static const struct dev_pm_ops sdo_pm_ops = { | |||
292 | .runtime_resume = sdo_runtime_resume, | 292 | .runtime_resume = sdo_runtime_resume, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static int __devinit sdo_probe(struct platform_device *pdev) | 295 | static int sdo_probe(struct platform_device *pdev) |
296 | { | 296 | { |
297 | struct device *dev = &pdev->dev; | 297 | struct device *dev = &pdev->dev; |
298 | struct sdo_device *sdev; | 298 | struct sdo_device *sdev; |
@@ -419,7 +419,7 @@ fail: | |||
419 | return ret; | 419 | return ret; |
420 | } | 420 | } |
421 | 421 | ||
422 | static int __devexit sdo_remove(struct platform_device *pdev) | 422 | static int sdo_remove(struct platform_device *pdev) |
423 | { | 423 | { |
424 | struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev); | 424 | struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev); |
425 | struct sdo_device *sdev = sd_to_sdev(sd); | 425 | struct sdo_device *sdev = sd_to_sdev(sd); |
@@ -437,7 +437,7 @@ static int __devexit sdo_remove(struct platform_device *pdev) | |||
437 | 437 | ||
438 | static struct platform_driver sdo_driver __refdata = { | 438 | static struct platform_driver sdo_driver __refdata = { |
439 | .probe = sdo_probe, | 439 | .probe = sdo_probe, |
440 | .remove = __devexit_p(sdo_remove), | 440 | .remove = sdo_remove, |
441 | .driver = { | 441 | .driver = { |
442 | .name = "s5p-sdo", | 442 | .name = "s5p-sdo", |
443 | .owner = THIS_MODULE, | 443 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-tv/sii9234_drv.c b/drivers/media/platform/s5p-tv/sii9234_drv.c index 716d4846f8bd..49191aac9634 100644 --- a/drivers/media/platform/s5p-tv/sii9234_drv.c +++ b/drivers/media/platform/s5p-tv/sii9234_drv.c | |||
@@ -315,8 +315,8 @@ static const struct v4l2_subdev_ops sii9234_ops = { | |||
315 | .video = &sii9234_video_ops, | 315 | .video = &sii9234_video_ops, |
316 | }; | 316 | }; |
317 | 317 | ||
318 | static int __devinit sii9234_probe(struct i2c_client *client, | 318 | static int sii9234_probe(struct i2c_client *client, |
319 | const struct i2c_device_id *id) | 319 | const struct i2c_device_id *id) |
320 | { | 320 | { |
321 | struct device *dev = &client->dev; | 321 | struct device *dev = &client->dev; |
322 | struct sii9234_platform_data *pdata = dev->platform_data; | 322 | struct sii9234_platform_data *pdata = dev->platform_data; |
@@ -378,7 +378,7 @@ fail: | |||
378 | return ret; | 378 | return ret; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int __devexit sii9234_remove(struct i2c_client *client) | 381 | static int sii9234_remove(struct i2c_client *client) |
382 | { | 382 | { |
383 | struct device *dev = &client->dev; | 383 | struct device *dev = &client->dev; |
384 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 384 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
@@ -406,7 +406,7 @@ static struct i2c_driver sii9234_driver = { | |||
406 | .pm = &sii9234_pm_ops, | 406 | .pm = &sii9234_pm_ops, |
407 | }, | 407 | }, |
408 | .probe = sii9234_probe, | 408 | .probe = sii9234_probe, |
409 | .remove = __devexit_p(sii9234_remove), | 409 | .remove = sii9234_remove, |
410 | .id_table = sii9234_id, | 410 | .id_table = sii9234_id, |
411 | }; | 411 | }; |
412 | 412 | ||
diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c index a1c87f0ceaab..f3c4571ac01e 100644 --- a/drivers/media/platform/sh_vou.c +++ b/drivers/media/platform/sh_vou.c | |||
@@ -1326,7 +1326,7 @@ static const struct video_device sh_vou_video_template = { | |||
1326 | .vfl_dir = VFL_DIR_TX, | 1326 | .vfl_dir = VFL_DIR_TX, |
1327 | }; | 1327 | }; |
1328 | 1328 | ||
1329 | static int __devinit sh_vou_probe(struct platform_device *pdev) | 1329 | static int sh_vou_probe(struct platform_device *pdev) |
1330 | { | 1330 | { |
1331 | struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data; | 1331 | struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data; |
1332 | struct v4l2_rect *rect; | 1332 | struct v4l2_rect *rect; |
@@ -1461,7 +1461,7 @@ ereqmemreg: | |||
1461 | return ret; | 1461 | return ret; |
1462 | } | 1462 | } |
1463 | 1463 | ||
1464 | static int __devexit sh_vou_remove(struct platform_device *pdev) | 1464 | static int sh_vou_remove(struct platform_device *pdev) |
1465 | { | 1465 | { |
1466 | int irq = platform_get_irq(pdev, 0); | 1466 | int irq = platform_get_irq(pdev, 0); |
1467 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); | 1467 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); |
@@ -1487,7 +1487,7 @@ static int __devexit sh_vou_remove(struct platform_device *pdev) | |||
1487 | } | 1487 | } |
1488 | 1488 | ||
1489 | static struct platform_driver __refdata sh_vou = { | 1489 | static struct platform_driver __refdata sh_vou = { |
1490 | .remove = __devexit_p(sh_vou_remove), | 1490 | .remove = sh_vou_remove, |
1491 | .driver = { | 1491 | .driver = { |
1492 | .name = "sh-vou", | 1492 | .name = "sh-vou", |
1493 | .owner = THIS_MODULE, | 1493 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index 6274a91c25c7..d96c8c7e01d9 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c | |||
@@ -897,7 +897,7 @@ static struct soc_camera_host_ops isi_soc_camera_host_ops = { | |||
897 | }; | 897 | }; |
898 | 898 | ||
899 | /* -----------------------------------------------------------------------*/ | 899 | /* -----------------------------------------------------------------------*/ |
900 | static int __devexit atmel_isi_remove(struct platform_device *pdev) | 900 | static int atmel_isi_remove(struct platform_device *pdev) |
901 | { | 901 | { |
902 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 902 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
903 | struct atmel_isi *isi = container_of(soc_host, | 903 | struct atmel_isi *isi = container_of(soc_host, |
@@ -921,7 +921,7 @@ static int __devexit atmel_isi_remove(struct platform_device *pdev) | |||
921 | return 0; | 921 | return 0; |
922 | } | 922 | } |
923 | 923 | ||
924 | static int __devinit atmel_isi_probe(struct platform_device *pdev) | 924 | static int atmel_isi_probe(struct platform_device *pdev) |
925 | { | 925 | { |
926 | unsigned int irq; | 926 | unsigned int irq; |
927 | struct atmel_isi *isi; | 927 | struct atmel_isi *isi; |
@@ -1074,7 +1074,7 @@ err_clk_prepare_pclk: | |||
1074 | 1074 | ||
1075 | static struct platform_driver atmel_isi_driver = { | 1075 | static struct platform_driver atmel_isi_driver = { |
1076 | .probe = atmel_isi_probe, | 1076 | .probe = atmel_isi_probe, |
1077 | .remove = __devexit_p(atmel_isi_remove), | 1077 | .remove = atmel_isi_remove, |
1078 | .driver = { | 1078 | .driver = { |
1079 | .name = "atmel_isi", | 1079 | .name = "atmel_isi", |
1080 | .owner = THIS_MODULE, | 1080 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c index 791cd1d54a76..8bda2c908aba 100644 --- a/drivers/media/platform/soc_camera/mx2_camera.c +++ b/drivers/media/platform/soc_camera/mx2_camera.c | |||
@@ -1692,7 +1692,7 @@ static irqreturn_t mx27_camera_emma_irq(int irq_emma, void *data) | |||
1692 | return IRQ_HANDLED; | 1692 | return IRQ_HANDLED; |
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | static int __devinit mx27_camera_emma_init(struct platform_device *pdev) | 1695 | static int mx27_camera_emma_init(struct platform_device *pdev) |
1696 | { | 1696 | { |
1697 | struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev); | 1697 | struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev); |
1698 | struct resource *res_emma; | 1698 | struct resource *res_emma; |
@@ -1750,7 +1750,7 @@ out: | |||
1750 | return err; | 1750 | return err; |
1751 | } | 1751 | } |
1752 | 1752 | ||
1753 | static int __devinit mx2_camera_probe(struct platform_device *pdev) | 1753 | static int mx2_camera_probe(struct platform_device *pdev) |
1754 | { | 1754 | { |
1755 | struct mx2_camera_dev *pcdev; | 1755 | struct mx2_camera_dev *pcdev; |
1756 | struct resource *res_csi; | 1756 | struct resource *res_csi; |
@@ -1887,7 +1887,7 @@ exit: | |||
1887 | return err; | 1887 | return err; |
1888 | } | 1888 | } |
1889 | 1889 | ||
1890 | static int __devexit mx2_camera_remove(struct platform_device *pdev) | 1890 | static int mx2_camera_remove(struct platform_device *pdev) |
1891 | { | 1891 | { |
1892 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1892 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1893 | struct mx2_camera_dev *pcdev = container_of(soc_host, | 1893 | struct mx2_camera_dev *pcdev = container_of(soc_host, |
@@ -1912,7 +1912,7 @@ static struct platform_driver mx2_camera_driver = { | |||
1912 | .name = MX2_CAM_DRV_NAME, | 1912 | .name = MX2_CAM_DRV_NAME, |
1913 | }, | 1913 | }, |
1914 | .id_table = mx2_camera_devtype, | 1914 | .id_table = mx2_camera_devtype, |
1915 | .remove = __devexit_p(mx2_camera_remove), | 1915 | .remove = mx2_camera_remove, |
1916 | }; | 1916 | }; |
1917 | 1917 | ||
1918 | 1918 | ||
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 06d16de76377..45aef1053a49 100644 --- a/drivers/media/platform/soc_camera/mx3_camera.c +++ b/drivers/media/platform/soc_camera/mx3_camera.c | |||
@@ -1143,7 +1143,7 @@ static struct soc_camera_host_ops mx3_soc_camera_host_ops = { | |||
1143 | .set_bus_param = mx3_camera_set_bus_param, | 1143 | .set_bus_param = mx3_camera_set_bus_param, |
1144 | }; | 1144 | }; |
1145 | 1145 | ||
1146 | static int __devinit mx3_camera_probe(struct platform_device *pdev) | 1146 | static int mx3_camera_probe(struct platform_device *pdev) |
1147 | { | 1147 | { |
1148 | struct mx3_camera_dev *mx3_cam; | 1148 | struct mx3_camera_dev *mx3_cam; |
1149 | struct resource *res; | 1149 | struct resource *res; |
@@ -1246,7 +1246,7 @@ egetres: | |||
1246 | return err; | 1246 | return err; |
1247 | } | 1247 | } |
1248 | 1248 | ||
1249 | static int __devexit mx3_camera_remove(struct platform_device *pdev) | 1249 | static int mx3_camera_remove(struct platform_device *pdev) |
1250 | { | 1250 | { |
1251 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1251 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1252 | struct mx3_camera_dev *mx3_cam = container_of(soc_host, | 1252 | struct mx3_camera_dev *mx3_cam = container_of(soc_host, |
@@ -1279,7 +1279,7 @@ static struct platform_driver mx3_camera_driver = { | |||
1279 | .name = MX3_CAM_DRV_NAME, | 1279 | .name = MX3_CAM_DRV_NAME, |
1280 | }, | 1280 | }, |
1281 | .probe = mx3_camera_probe, | 1281 | .probe = mx3_camera_probe, |
1282 | .remove = __devexit_p(mx3_camera_remove), | 1282 | .remove = mx3_camera_remove, |
1283 | }; | 1283 | }; |
1284 | 1284 | ||
1285 | module_platform_driver(mx3_camera_driver); | 1285 | module_platform_driver(mx3_camera_driver); |
diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera/pxa_camera.c index 3434ffe79c6e..523330d00dee 100644 --- a/drivers/media/platform/soc_camera/pxa_camera.c +++ b/drivers/media/platform/soc_camera/pxa_camera.c | |||
@@ -1651,7 +1651,7 @@ static struct soc_camera_host_ops pxa_soc_camera_host_ops = { | |||
1651 | .set_bus_param = pxa_camera_set_bus_param, | 1651 | .set_bus_param = pxa_camera_set_bus_param, |
1652 | }; | 1652 | }; |
1653 | 1653 | ||
1654 | static int __devinit pxa_camera_probe(struct platform_device *pdev) | 1654 | static int pxa_camera_probe(struct platform_device *pdev) |
1655 | { | 1655 | { |
1656 | struct pxa_camera_dev *pcdev; | 1656 | struct pxa_camera_dev *pcdev; |
1657 | struct resource *res; | 1657 | struct resource *res; |
@@ -1801,7 +1801,7 @@ exit: | |||
1801 | return err; | 1801 | return err; |
1802 | } | 1802 | } |
1803 | 1803 | ||
1804 | static int __devexit pxa_camera_remove(struct platform_device *pdev) | 1804 | static int pxa_camera_remove(struct platform_device *pdev) |
1805 | { | 1805 | { |
1806 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1806 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1807 | struct pxa_camera_dev *pcdev = container_of(soc_host, | 1807 | struct pxa_camera_dev *pcdev = container_of(soc_host, |
@@ -1840,7 +1840,7 @@ static struct platform_driver pxa_camera_driver = { | |||
1840 | .pm = &pxa_camera_pm, | 1840 | .pm = &pxa_camera_pm, |
1841 | }, | 1841 | }, |
1842 | .probe = pxa_camera_probe, | 1842 | .probe = pxa_camera_probe, |
1843 | .remove = __devexit_p(pxa_camera_remove), | 1843 | .remove = pxa_camera_remove, |
1844 | }; | 1844 | }; |
1845 | 1845 | ||
1846 | module_platform_driver(pxa_camera_driver); | 1846 | module_platform_driver(pxa_camera_driver); |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c index 2d8861c0e8f2..ebbc126e71a6 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | |||
@@ -2071,7 +2071,7 @@ static int bus_notify(struct notifier_block *nb, | |||
2071 | return NOTIFY_DONE; | 2071 | return NOTIFY_DONE; |
2072 | } | 2072 | } |
2073 | 2073 | ||
2074 | static int __devinit sh_mobile_ceu_probe(struct platform_device *pdev) | 2074 | static int sh_mobile_ceu_probe(struct platform_device *pdev) |
2075 | { | 2075 | { |
2076 | struct sh_mobile_ceu_dev *pcdev; | 2076 | struct sh_mobile_ceu_dev *pcdev; |
2077 | struct resource *res; | 2077 | struct resource *res; |
@@ -2258,7 +2258,7 @@ exit: | |||
2258 | return err; | 2258 | return err; |
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | static int __devexit sh_mobile_ceu_remove(struct platform_device *pdev) | 2261 | static int sh_mobile_ceu_remove(struct platform_device *pdev) |
2262 | { | 2262 | { |
2263 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 2263 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
2264 | struct sh_mobile_ceu_dev *pcdev = container_of(soc_host, | 2264 | struct sh_mobile_ceu_dev *pcdev = container_of(soc_host, |
@@ -2307,7 +2307,7 @@ static struct platform_driver sh_mobile_ceu_driver = { | |||
2307 | .pm = &sh_mobile_ceu_dev_pm_ops, | 2307 | .pm = &sh_mobile_ceu_dev_pm_ops, |
2308 | }, | 2308 | }, |
2309 | .probe = sh_mobile_ceu_probe, | 2309 | .probe = sh_mobile_ceu_probe, |
2310 | .remove = __devexit_p(sh_mobile_ceu_remove), | 2310 | .remove = sh_mobile_ceu_remove, |
2311 | }; | 2311 | }; |
2312 | 2312 | ||
2313 | static int __init sh_mobile_ceu_init(void) | 2313 | static int __init sh_mobile_ceu_init(void) |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_csi2.c b/drivers/media/platform/soc_camera/sh_mobile_csi2.c index 05286500b4d4..a17aba9a0104 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_csi2.c +++ b/drivers/media/platform/soc_camera/sh_mobile_csi2.c | |||
@@ -294,7 +294,7 @@ static struct v4l2_subdev_ops sh_csi2_subdev_ops = { | |||
294 | .video = &sh_csi2_subdev_video_ops, | 294 | .video = &sh_csi2_subdev_video_ops, |
295 | }; | 295 | }; |
296 | 296 | ||
297 | static __devinit int sh_csi2_probe(struct platform_device *pdev) | 297 | static int sh_csi2_probe(struct platform_device *pdev) |
298 | { | 298 | { |
299 | struct resource *res; | 299 | struct resource *res; |
300 | unsigned int irq; | 300 | unsigned int irq; |
@@ -366,7 +366,7 @@ ereqreg: | |||
366 | return ret; | 366 | return ret; |
367 | } | 367 | } |
368 | 368 | ||
369 | static __devexit int sh_csi2_remove(struct platform_device *pdev) | 369 | static int sh_csi2_remove(struct platform_device *pdev) |
370 | { | 370 | { |
371 | struct sh_csi2 *priv = platform_get_drvdata(pdev); | 371 | struct sh_csi2 *priv = platform_get_drvdata(pdev); |
372 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 372 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -382,7 +382,7 @@ static __devexit int sh_csi2_remove(struct platform_device *pdev) | |||
382 | } | 382 | } |
383 | 383 | ||
384 | static struct platform_driver __refdata sh_csi2_pdrv = { | 384 | static struct platform_driver __refdata sh_csi2_pdrv = { |
385 | .remove = __devexit_p(sh_csi2_remove), | 385 | .remove = sh_csi2_remove, |
386 | .probe = sh_csi2_probe, | 386 | .probe = sh_csi2_probe, |
387 | .driver = { | 387 | .driver = { |
388 | .name = "sh-mobile-csi2", | 388 | .name = "sh-mobile-csi2", |
diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index 4e3735679f17..2ec90eae6ba0 100644 --- a/drivers/media/platform/soc_camera/soc_camera.c +++ b/drivers/media/platform/soc_camera/soc_camera.c | |||
@@ -1530,7 +1530,7 @@ static int soc_camera_video_start(struct soc_camera_device *icd) | |||
1530 | return 0; | 1530 | return 0; |
1531 | } | 1531 | } |
1532 | 1532 | ||
1533 | static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev) | 1533 | static int soc_camera_pdrv_probe(struct platform_device *pdev) |
1534 | { | 1534 | { |
1535 | struct soc_camera_link *icl = pdev->dev.platform_data; | 1535 | struct soc_camera_link *icl = pdev->dev.platform_data; |
1536 | struct soc_camera_device *icd; | 1536 | struct soc_camera_device *icd; |
@@ -1558,7 +1558,7 @@ static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev) | |||
1558 | * hot-pluggable. Now we know, that all our users - hosts and devices have | 1558 | * hot-pluggable. Now we know, that all our users - hosts and devices have |
1559 | * been unloaded already | 1559 | * been unloaded already |
1560 | */ | 1560 | */ |
1561 | static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) | 1561 | static int soc_camera_pdrv_remove(struct platform_device *pdev) |
1562 | { | 1562 | { |
1563 | struct soc_camera_device *icd = platform_get_drvdata(pdev); | 1563 | struct soc_camera_device *icd = platform_get_drvdata(pdev); |
1564 | 1564 | ||
@@ -1572,7 +1572,7 @@ static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) | |||
1572 | 1572 | ||
1573 | static struct platform_driver __refdata soc_camera_pdrv = { | 1573 | static struct platform_driver __refdata soc_camera_pdrv = { |
1574 | .probe = soc_camera_pdrv_probe, | 1574 | .probe = soc_camera_pdrv_probe, |
1575 | .remove = __devexit_p(soc_camera_pdrv_remove), | 1575 | .remove = soc_camera_pdrv_remove, |
1576 | .driver = { | 1576 | .driver = { |
1577 | .name = "soc-camera-pdrv", | 1577 | .name = "soc-camera-pdrv", |
1578 | .owner = THIS_MODULE, | 1578 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c index 02194c056b00..d854d08a6c7f 100644 --- a/drivers/media/platform/timblogiw.c +++ b/drivers/media/platform/timblogiw.c | |||
@@ -745,7 +745,7 @@ static int timblogiw_mmap(struct file *file, struct vm_area_struct *vma) | |||
745 | 745 | ||
746 | /* Platform device functions */ | 746 | /* Platform device functions */ |
747 | 747 | ||
748 | static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = { | 748 | static struct v4l2_ioctl_ops timblogiw_ioctl_ops = { |
749 | .vidioc_querycap = timblogiw_querycap, | 749 | .vidioc_querycap = timblogiw_querycap, |
750 | .vidioc_enum_fmt_vid_cap = timblogiw_enum_fmt, | 750 | .vidioc_enum_fmt_vid_cap = timblogiw_enum_fmt, |
751 | .vidioc_g_fmt_vid_cap = timblogiw_g_fmt, | 751 | .vidioc_g_fmt_vid_cap = timblogiw_g_fmt, |
@@ -767,7 +767,7 @@ static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = { | |||
767 | .vidioc_enum_framesizes = timblogiw_enum_framesizes, | 767 | .vidioc_enum_framesizes = timblogiw_enum_framesizes, |
768 | }; | 768 | }; |
769 | 769 | ||
770 | static __devinitconst struct v4l2_file_operations timblogiw_fops = { | 770 | static struct v4l2_file_operations timblogiw_fops = { |
771 | .owner = THIS_MODULE, | 771 | .owner = THIS_MODULE, |
772 | .open = timblogiw_open, | 772 | .open = timblogiw_open, |
773 | .release = timblogiw_close, | 773 | .release = timblogiw_close, |
@@ -777,7 +777,7 @@ static __devinitconst struct v4l2_file_operations timblogiw_fops = { | |||
777 | .poll = timblogiw_poll, | 777 | .poll = timblogiw_poll, |
778 | }; | 778 | }; |
779 | 779 | ||
780 | static __devinitconst struct video_device timblogiw_template = { | 780 | static struct video_device timblogiw_template = { |
781 | .name = TIMBLOGIWIN_NAME, | 781 | .name = TIMBLOGIWIN_NAME, |
782 | .fops = &timblogiw_fops, | 782 | .fops = &timblogiw_fops, |
783 | .ioctl_ops = &timblogiw_ioctl_ops, | 783 | .ioctl_ops = &timblogiw_ioctl_ops, |
@@ -786,7 +786,7 @@ static __devinitconst struct video_device timblogiw_template = { | |||
786 | .tvnorms = V4L2_STD_PAL | V4L2_STD_NTSC | 786 | .tvnorms = V4L2_STD_PAL | V4L2_STD_NTSC |
787 | }; | 787 | }; |
788 | 788 | ||
789 | static int __devinit timblogiw_probe(struct platform_device *pdev) | 789 | static int timblogiw_probe(struct platform_device *pdev) |
790 | { | 790 | { |
791 | int err; | 791 | int err; |
792 | struct timblogiw *lw = NULL; | 792 | struct timblogiw *lw = NULL; |
@@ -848,7 +848,7 @@ err: | |||
848 | return err; | 848 | return err; |
849 | } | 849 | } |
850 | 850 | ||
851 | static int __devexit timblogiw_remove(struct platform_device *pdev) | 851 | static int timblogiw_remove(struct platform_device *pdev) |
852 | { | 852 | { |
853 | struct timblogiw *lw = platform_get_drvdata(pdev); | 853 | struct timblogiw *lw = platform_get_drvdata(pdev); |
854 | 854 | ||
@@ -869,7 +869,7 @@ static struct platform_driver timblogiw_platform_driver = { | |||
869 | .owner = THIS_MODULE, | 869 | .owner = THIS_MODULE, |
870 | }, | 870 | }, |
871 | .probe = timblogiw_probe, | 871 | .probe = timblogiw_probe, |
872 | .remove = __devexit_p(timblogiw_remove), | 872 | .remove = timblogiw_remove, |
873 | }; | 873 | }; |
874 | 874 | ||
875 | module_platform_driver(timblogiw_platform_driver); | 875 | module_platform_driver(timblogiw_platform_driver); |
diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index eb404c2ce270..63e8c3461239 100644 --- a/drivers/media/platform/via-camera.c +++ b/drivers/media/platform/via-camera.c | |||
@@ -1324,7 +1324,7 @@ static struct video_device viacam_v4l_template = { | |||
1324 | #define VIACAM_SERIAL_CREG 0x46 | 1324 | #define VIACAM_SERIAL_CREG 0x46 |
1325 | #define VIACAM_SERIAL_BIT 0x40 | 1325 | #define VIACAM_SERIAL_BIT 0x40 |
1326 | 1326 | ||
1327 | static __devinit bool viacam_serial_is_enabled(void) | 1327 | static bool viacam_serial_is_enabled(void) |
1328 | { | 1328 | { |
1329 | struct pci_bus *pbus = pci_find_bus(0, 0); | 1329 | struct pci_bus *pbus = pci_find_bus(0, 0); |
1330 | u8 cbyte; | 1330 | u8 cbyte; |
@@ -1353,7 +1353,7 @@ static struct ov7670_config sensor_cfg = { | |||
1353 | .clock_speed = 90, | 1353 | .clock_speed = 90, |
1354 | }; | 1354 | }; |
1355 | 1355 | ||
1356 | static __devinit int viacam_probe(struct platform_device *pdev) | 1356 | static int viacam_probe(struct platform_device *pdev) |
1357 | { | 1357 | { |
1358 | int ret; | 1358 | int ret; |
1359 | struct i2c_adapter *sensor_adapter; | 1359 | struct i2c_adapter *sensor_adapter; |
@@ -1490,7 +1490,7 @@ out_unregister: | |||
1490 | return ret; | 1490 | return ret; |
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | static __devexit int viacam_remove(struct platform_device *pdev) | 1493 | static int viacam_remove(struct platform_device *pdev) |
1494 | { | 1494 | { |
1495 | struct via_camera *cam = via_cam_info; | 1495 | struct via_camera *cam = via_cam_info; |
1496 | struct viafb_dev *viadev = pdev->dev.platform_data; | 1496 | struct viafb_dev *viadev = pdev->dev.platform_data; |
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index b415211d0c4b..bd4d3a7cdadd 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -114,7 +114,8 @@ static struct snd_tea575x_ops maxiradio_tea_ops = { | |||
114 | .set_direction = maxiradio_tea575x_set_direction, | 114 | .set_direction = maxiradio_tea575x_set_direction, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static int __devinit maxiradio_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 117 | static int maxiradio_probe(struct pci_dev *pdev, |
118 | const struct pci_device_id *ent) | ||
118 | { | 119 | { |
119 | struct maxiradio *dev; | 120 | struct maxiradio *dev; |
120 | struct v4l2_device *v4l2_dev; | 121 | struct v4l2_device *v4l2_dev; |
@@ -172,7 +173,7 @@ errfr: | |||
172 | return retval; | 173 | return retval; |
173 | } | 174 | } |
174 | 175 | ||
175 | static void __devexit maxiradio_remove(struct pci_dev *pdev) | 176 | static void maxiradio_remove(struct pci_dev *pdev) |
176 | { | 177 | { |
177 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); | 178 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); |
178 | struct maxiradio *dev = to_maxiradio(v4l2_dev); | 179 | struct maxiradio *dev = to_maxiradio(v4l2_dev); |
@@ -196,7 +197,7 @@ static struct pci_driver maxiradio_driver = { | |||
196 | .name = "radio-maxiradio", | 197 | .name = "radio-maxiradio", |
197 | .id_table = maxiradio_pci_tbl, | 198 | .id_table = maxiradio_pci_tbl, |
198 | .probe = maxiradio_probe, | 199 | .probe = maxiradio_probe, |
199 | .remove = __devexit_p(maxiradio_remove), | 200 | .remove = maxiradio_remove, |
200 | }; | 201 | }; |
201 | 202 | ||
202 | static int __init maxiradio_init(void) | 203 | static int __init maxiradio_init(void) |
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index c260a2a354b1..637a55564958 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -265,7 +265,7 @@ static const struct v4l2_ioctl_ops fmi_ioctl_ops = { | |||
265 | }; | 265 | }; |
266 | 266 | ||
267 | /* ladis: this is my card. does any other types exist? */ | 267 | /* ladis: this is my card. does any other types exist? */ |
268 | static struct isapnp_device_id id_table[] __devinitdata = { | 268 | static struct isapnp_device_id id_table[] = { |
269 | /* SF16-FMI */ | 269 | /* SF16-FMI */ |
270 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 270 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, |
271 | ISAPNP_VENDOR('M','F','R'), ISAPNP_FUNCTION(0xad10), 0}, | 271 | ISAPNP_VENDOR('M','F','R'), ISAPNP_FUNCTION(0xad10), 0}, |
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 4efcbec74c52..9c0990457a7c 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -197,13 +197,13 @@ static int fmr2_tea_ext_init(struct snd_tea575x *tea) | |||
197 | return 0; | 197 | return 0; |
198 | } | 198 | } |
199 | 199 | ||
200 | static struct pnp_device_id fmr2_pnp_ids[] __devinitdata = { | 200 | static struct pnp_device_id fmr2_pnp_ids[] = { |
201 | { .id = "MFRad13" }, /* tuner subdevice of SF16-FMD2 */ | 201 | { .id = "MFRad13" }, /* tuner subdevice of SF16-FMD2 */ |
202 | { .id = "" } | 202 | { .id = "" } |
203 | }; | 203 | }; |
204 | MODULE_DEVICE_TABLE(pnp, fmr2_pnp_ids); | 204 | MODULE_DEVICE_TABLE(pnp, fmr2_pnp_ids); |
205 | 205 | ||
206 | static int __devinit fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) | 206 | static int fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) |
207 | { | 207 | { |
208 | int err, i; | 208 | int err, i; |
209 | char *card_name = fmr2->is_fmd2 ? "SF16-FMD2" : "SF16-FMR2"; | 209 | char *card_name = fmr2->is_fmd2 ? "SF16-FMD2" : "SF16-FMR2"; |
@@ -249,7 +249,7 @@ static int __devinit fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) | |||
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
251 | 251 | ||
252 | static int __devinit fmr2_isa_match(struct device *pdev, unsigned int ndev) | 252 | static int fmr2_isa_match(struct device *pdev, unsigned int ndev) |
253 | { | 253 | { |
254 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); | 254 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); |
255 | if (!fmr2) | 255 | if (!fmr2) |
@@ -265,8 +265,7 @@ static int __devinit fmr2_isa_match(struct device *pdev, unsigned int ndev) | |||
265 | return 1; | 265 | return 1; |
266 | } | 266 | } |
267 | 267 | ||
268 | static int __devinit fmr2_pnp_probe(struct pnp_dev *pdev, | 268 | static int fmr2_pnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *id) |
269 | const struct pnp_device_id *id) | ||
270 | { | 269 | { |
271 | int ret; | 270 | int ret; |
272 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); | 271 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); |
@@ -285,7 +284,7 @@ static int __devinit fmr2_pnp_probe(struct pnp_dev *pdev, | |||
285 | return 0; | 284 | return 0; |
286 | } | 285 | } |
287 | 286 | ||
288 | static void __devexit fmr2_remove(struct fmr2 *fmr2) | 287 | static void fmr2_remove(struct fmr2 *fmr2) |
289 | { | 288 | { |
290 | snd_tea575x_exit(&fmr2->tea); | 289 | snd_tea575x_exit(&fmr2->tea); |
291 | release_region(fmr2->io, 2); | 290 | release_region(fmr2->io, 2); |
@@ -293,7 +292,7 @@ static void __devexit fmr2_remove(struct fmr2 *fmr2) | |||
293 | kfree(fmr2); | 292 | kfree(fmr2); |
294 | } | 293 | } |
295 | 294 | ||
296 | static int __devexit fmr2_isa_remove(struct device *pdev, unsigned int ndev) | 295 | static int fmr2_isa_remove(struct device *pdev, unsigned int ndev) |
297 | { | 296 | { |
298 | fmr2_remove(dev_get_drvdata(pdev)); | 297 | fmr2_remove(dev_get_drvdata(pdev)); |
299 | dev_set_drvdata(pdev, NULL); | 298 | dev_set_drvdata(pdev, NULL); |
@@ -301,7 +300,7 @@ static int __devexit fmr2_isa_remove(struct device *pdev, unsigned int ndev) | |||
301 | return 0; | 300 | return 0; |
302 | } | 301 | } |
303 | 302 | ||
304 | static void __devexit fmr2_pnp_remove(struct pnp_dev *pdev) | 303 | static void fmr2_pnp_remove(struct pnp_dev *pdev) |
305 | { | 304 | { |
306 | fmr2_remove(pnp_get_drvdata(pdev)); | 305 | fmr2_remove(pnp_get_drvdata(pdev)); |
307 | pnp_set_drvdata(pdev, NULL); | 306 | pnp_set_drvdata(pdev, NULL); |
@@ -309,7 +308,7 @@ static void __devexit fmr2_pnp_remove(struct pnp_dev *pdev) | |||
309 | 308 | ||
310 | struct isa_driver fmr2_isa_driver = { | 309 | struct isa_driver fmr2_isa_driver = { |
311 | .match = fmr2_isa_match, | 310 | .match = fmr2_isa_match, |
312 | .remove = __devexit_p(fmr2_isa_remove), | 311 | .remove = fmr2_isa_remove, |
313 | .driver = { | 312 | .driver = { |
314 | .name = "radio-sf16fmr2", | 313 | .name = "radio-sf16fmr2", |
315 | }, | 314 | }, |
@@ -319,7 +318,7 @@ struct pnp_driver fmr2_pnp_driver = { | |||
319 | .name = "radio-sf16fmr2", | 318 | .name = "radio-sf16fmr2", |
320 | .id_table = fmr2_pnp_ids, | 319 | .id_table = fmr2_pnp_ids, |
321 | .probe = fmr2_pnp_probe, | 320 | .probe = fmr2_pnp_probe, |
322 | .remove = __devexit_p(fmr2_pnp_remove), | 321 | .remove = fmr2_pnp_remove, |
323 | }; | 322 | }; |
324 | 323 | ||
325 | static int __init fmr2_init(void) | 324 | static int __init fmr2_init(void) |
diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index 36aec575e0ec..1978516af67e 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c | |||
@@ -493,8 +493,8 @@ static struct video_device tea5764_radio_template = { | |||
493 | }; | 493 | }; |
494 | 494 | ||
495 | /* I2C probe: check if the device exists and register with v4l if it is */ | 495 | /* I2C probe: check if the device exists and register with v4l if it is */ |
496 | static int __devinit tea5764_i2c_probe(struct i2c_client *client, | 496 | static int tea5764_i2c_probe(struct i2c_client *client, |
497 | const struct i2c_device_id *id) | 497 | const struct i2c_device_id *id) |
498 | { | 498 | { |
499 | struct tea5764_device *radio; | 499 | struct tea5764_device *radio; |
500 | struct tea5764_regs *r; | 500 | struct tea5764_regs *r; |
@@ -552,7 +552,7 @@ errfr: | |||
552 | return ret; | 552 | return ret; |
553 | } | 553 | } |
554 | 554 | ||
555 | static int __devexit tea5764_i2c_remove(struct i2c_client *client) | 555 | static int tea5764_i2c_remove(struct i2c_client *client) |
556 | { | 556 | { |
557 | struct tea5764_device *radio = i2c_get_clientdata(client); | 557 | struct tea5764_device *radio = i2c_get_clientdata(client); |
558 | 558 | ||
@@ -578,7 +578,7 @@ static struct i2c_driver tea5764_i2c_driver = { | |||
578 | .owner = THIS_MODULE, | 578 | .owner = THIS_MODULE, |
579 | }, | 579 | }, |
580 | .probe = tea5764_i2c_probe, | 580 | .probe = tea5764_i2c_probe, |
581 | .remove = __devexit_p(tea5764_i2c_remove), | 581 | .remove = tea5764_i2c_remove, |
582 | .id_table = tea5764_id, | 582 | .id_table = tea5764_id, |
583 | }; | 583 | }; |
584 | 584 | ||
diff --git a/drivers/media/radio/radio-timb.c b/drivers/media/radio/radio-timb.c index 5cf07779f4bb..b87effeb5dc6 100644 --- a/drivers/media/radio/radio-timb.c +++ b/drivers/media/radio/radio-timb.c | |||
@@ -145,7 +145,7 @@ static const struct v4l2_file_operations timbradio_fops = { | |||
145 | .unlocked_ioctl = video_ioctl2, | 145 | .unlocked_ioctl = video_ioctl2, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | static int __devinit timbradio_probe(struct platform_device *pdev) | 148 | static int timbradio_probe(struct platform_device *pdev) |
149 | { | 149 | { |
150 | struct timb_radio_platform_data *pdata = pdev->dev.platform_data; | 150 | struct timb_radio_platform_data *pdata = pdev->dev.platform_data; |
151 | struct timbradio *tr; | 151 | struct timbradio *tr; |
@@ -201,7 +201,7 @@ err: | |||
201 | return err; | 201 | return err; |
202 | } | 202 | } |
203 | 203 | ||
204 | static int __devexit timbradio_remove(struct platform_device *pdev) | 204 | static int timbradio_remove(struct platform_device *pdev) |
205 | { | 205 | { |
206 | struct timbradio *tr = platform_get_drvdata(pdev); | 206 | struct timbradio *tr = platform_get_drvdata(pdev); |
207 | 207 | ||
@@ -219,7 +219,7 @@ static struct platform_driver timbradio_platform_driver = { | |||
219 | .owner = THIS_MODULE, | 219 | .owner = THIS_MODULE, |
220 | }, | 220 | }, |
221 | .probe = timbradio_probe, | 221 | .probe = timbradio_probe, |
222 | .remove = __devexit_p(timbradio_remove), | 222 | .remove = timbradio_remove, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | module_platform_driver(timbradio_platform_driver); | 225 | module_platform_driver(timbradio_platform_driver); |
diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c index 9b0c9fa0beb8..c48be195bbad 100644 --- a/drivers/media/radio/radio-wl1273.c +++ b/drivers/media/radio/radio-wl1273.c | |||
@@ -1990,7 +1990,7 @@ static int wl1273_fm_radio_remove(struct platform_device *pdev) | |||
1990 | return 0; | 1990 | return 0; |
1991 | } | 1991 | } |
1992 | 1992 | ||
1993 | static int __devinit wl1273_fm_radio_probe(struct platform_device *pdev) | 1993 | static int wl1273_fm_radio_probe(struct platform_device *pdev) |
1994 | { | 1994 | { |
1995 | struct wl1273_core **core = pdev->dev.platform_data; | 1995 | struct wl1273_core **core = pdev->dev.platform_data; |
1996 | struct wl1273_device *radio; | 1996 | struct wl1273_device *radio; |
@@ -2145,7 +2145,7 @@ pdata_err: | |||
2145 | 2145 | ||
2146 | static struct platform_driver wl1273_fm_radio_driver = { | 2146 | static struct platform_driver wl1273_fm_radio_driver = { |
2147 | .probe = wl1273_fm_radio_probe, | 2147 | .probe = wl1273_fm_radio_probe, |
2148 | .remove = __devexit_p(wl1273_fm_radio_remove), | 2148 | .remove = wl1273_fm_radio_remove, |
2149 | .driver = { | 2149 | .driver = { |
2150 | .name = "wl1273_fm_radio", | 2150 | .name = "wl1273_fm_radio", |
2151 | .owner = THIS_MODULE, | 2151 | .owner = THIS_MODULE, |
diff --git a/drivers/media/radio/saa7706h.c b/drivers/media/radio/saa7706h.c index 54db36ccb9ee..06c06cc9ff25 100644 --- a/drivers/media/radio/saa7706h.c +++ b/drivers/media/radio/saa7706h.c | |||
@@ -373,8 +373,8 @@ static const struct v4l2_subdev_ops saa7706h_ops = { | |||
373 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' | 373 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' |
374 | */ | 374 | */ |
375 | 375 | ||
376 | static int __devinit saa7706h_probe(struct i2c_client *client, | 376 | static int saa7706h_probe(struct i2c_client *client, |
377 | const struct i2c_device_id *id) | 377 | const struct i2c_device_id *id) |
378 | { | 378 | { |
379 | struct saa7706h_state *state; | 379 | struct saa7706h_state *state; |
380 | struct v4l2_subdev *sd; | 380 | struct v4l2_subdev *sd; |
@@ -418,7 +418,7 @@ err: | |||
418 | return err; | 418 | return err; |
419 | } | 419 | } |
420 | 420 | ||
421 | static int __devexit saa7706h_remove(struct i2c_client *client) | 421 | static int saa7706h_remove(struct i2c_client *client) |
422 | { | 422 | { |
423 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 423 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
424 | 424 | ||
@@ -441,7 +441,7 @@ static struct i2c_driver saa7706h_driver = { | |||
441 | .name = DRIVER_NAME, | 441 | .name = DRIVER_NAME, |
442 | }, | 442 | }, |
443 | .probe = saa7706h_probe, | 443 | .probe = saa7706h_probe, |
444 | .remove = __devexit_p(saa7706h_remove), | 444 | .remove = saa7706h_remove, |
445 | .id_table = saa7706h_id, | 445 | .id_table = saa7706h_id, |
446 | }; | 446 | }; |
447 | 447 | ||
diff --git a/drivers/media/radio/si470x/radio-si470x-i2c.c b/drivers/media/radio/si470x/radio-si470x-i2c.c index 4ef55ec8045e..e5fc9acd0c4f 100644 --- a/drivers/media/radio/si470x/radio-si470x-i2c.c +++ b/drivers/media/radio/si470x/radio-si470x-i2c.c | |||
@@ -347,8 +347,8 @@ end: | |||
347 | /* | 347 | /* |
348 | * si470x_i2c_probe - probe for the device | 348 | * si470x_i2c_probe - probe for the device |
349 | */ | 349 | */ |
350 | static int __devinit si470x_i2c_probe(struct i2c_client *client, | 350 | static int si470x_i2c_probe(struct i2c_client *client, |
351 | const struct i2c_device_id *id) | 351 | const struct i2c_device_id *id) |
352 | { | 352 | { |
353 | struct si470x_device *radio; | 353 | struct si470x_device *radio; |
354 | int retval = 0; | 354 | int retval = 0; |
@@ -451,7 +451,7 @@ err_initial: | |||
451 | /* | 451 | /* |
452 | * si470x_i2c_remove - remove the device | 452 | * si470x_i2c_remove - remove the device |
453 | */ | 453 | */ |
454 | static __devexit int si470x_i2c_remove(struct i2c_client *client) | 454 | static int si470x_i2c_remove(struct i2c_client *client) |
455 | { | 455 | { |
456 | struct si470x_device *radio = i2c_get_clientdata(client); | 456 | struct si470x_device *radio = i2c_get_clientdata(client); |
457 | 457 | ||
@@ -514,7 +514,7 @@ static struct i2c_driver si470x_i2c_driver = { | |||
514 | #endif | 514 | #endif |
515 | }, | 515 | }, |
516 | .probe = si470x_i2c_probe, | 516 | .probe = si470x_i2c_probe, |
517 | .remove = __devexit_p(si470x_i2c_remove), | 517 | .remove = si470x_i2c_remove, |
518 | .id_table = si470x_i2c_id, | 518 | .id_table = si470x_i2c_id, |
519 | }; | 519 | }; |
520 | 520 | ||
diff --git a/drivers/media/radio/tef6862.c b/drivers/media/radio/tef6862.c index 06d47e5cce9f..b18c2dc268ba 100644 --- a/drivers/media/radio/tef6862.c +++ b/drivers/media/radio/tef6862.c | |||
@@ -165,8 +165,8 @@ static const struct v4l2_subdev_ops tef6862_ops = { | |||
165 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' | 165 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' |
166 | */ | 166 | */ |
167 | 167 | ||
168 | static int __devinit tef6862_probe(struct i2c_client *client, | 168 | static int tef6862_probe(struct i2c_client *client, |
169 | const struct i2c_device_id *id) | 169 | const struct i2c_device_id *id) |
170 | { | 170 | { |
171 | struct tef6862_state *state; | 171 | struct tef6862_state *state; |
172 | struct v4l2_subdev *sd; | 172 | struct v4l2_subdev *sd; |
@@ -189,7 +189,7 @@ static int __devinit tef6862_probe(struct i2c_client *client, | |||
189 | return 0; | 189 | return 0; |
190 | } | 190 | } |
191 | 191 | ||
192 | static int __devexit tef6862_remove(struct i2c_client *client) | 192 | static int tef6862_remove(struct i2c_client *client) |
193 | { | 193 | { |
194 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 194 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
195 | 195 | ||
@@ -211,7 +211,7 @@ static struct i2c_driver tef6862_driver = { | |||
211 | .name = DRIVER_NAME, | 211 | .name = DRIVER_NAME, |
212 | }, | 212 | }, |
213 | .probe = tef6862_probe, | 213 | .probe = tef6862_probe, |
214 | .remove = __devexit_p(tef6862_remove), | 214 | .remove = tef6862_remove, |
215 | .id_table = tef6862_id, | 215 | .id_table = tef6862_id, |
216 | }; | 216 | }; |
217 | 217 | ||
diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c index 22231dd4f62b..cef04786b52f 100644 --- a/drivers/media/rc/ene_ir.c +++ b/drivers/media/rc/ene_ir.c | |||
@@ -1172,7 +1172,7 @@ static struct pnp_driver ene_driver = { | |||
1172 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, | 1172 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, |
1173 | 1173 | ||
1174 | .probe = ene_probe, | 1174 | .probe = ene_probe, |
1175 | .remove = __devexit_p(ene_remove), | 1175 | .remove = ene_remove, |
1176 | #ifdef CONFIG_PM | 1176 | #ifdef CONFIG_PM |
1177 | .suspend = ene_suspend, | 1177 | .suspend = ene_suspend, |
1178 | .resume = ene_resume, | 1178 | .resume = ene_resume, |
diff --git a/drivers/media/rc/fintek-cir.c b/drivers/media/rc/fintek-cir.c index 936c3f79b62c..1df410e13688 100644 --- a/drivers/media/rc/fintek-cir.c +++ b/drivers/media/rc/fintek-cir.c | |||
@@ -590,7 +590,7 @@ failure: | |||
590 | return ret; | 590 | return ret; |
591 | } | 591 | } |
592 | 592 | ||
593 | static void __devexit fintek_remove(struct pnp_dev *pdev) | 593 | static void fintek_remove(struct pnp_dev *pdev) |
594 | { | 594 | { |
595 | struct fintek_dev *fintek = pnp_get_drvdata(pdev); | 595 | struct fintek_dev *fintek = pnp_get_drvdata(pdev); |
596 | unsigned long flags; | 596 | unsigned long flags; |
@@ -678,7 +678,7 @@ static struct pnp_driver fintek_driver = { | |||
678 | .id_table = fintek_ids, | 678 | .id_table = fintek_ids, |
679 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, | 679 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, |
680 | .probe = fintek_probe, | 680 | .probe = fintek_probe, |
681 | .remove = __devexit_p(fintek_remove), | 681 | .remove = fintek_remove, |
682 | .suspend = fintek_suspend, | 682 | .suspend = fintek_suspend, |
683 | .resume = fintek_resume, | 683 | .resume = fintek_resume, |
684 | .shutdown = fintek_shutdown, | 684 | .shutdown = fintek_shutdown, |
diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index ba1a1eb356cf..4f71a7d1f019 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c | |||
@@ -58,7 +58,7 @@ err_get_value: | |||
58 | return IRQ_HANDLED; | 58 | return IRQ_HANDLED; |
59 | } | 59 | } |
60 | 60 | ||
61 | static int __devinit gpio_ir_recv_probe(struct platform_device *pdev) | 61 | static int gpio_ir_recv_probe(struct platform_device *pdev) |
62 | { | 62 | { |
63 | struct gpio_rc_dev *gpio_dev; | 63 | struct gpio_rc_dev *gpio_dev; |
64 | struct rc_dev *rcdev; | 64 | struct rc_dev *rcdev; |
@@ -140,7 +140,7 @@ err_allocate_device: | |||
140 | return rc; | 140 | return rc; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int __devexit gpio_ir_recv_remove(struct platform_device *pdev) | 143 | static int gpio_ir_recv_remove(struct platform_device *pdev) |
144 | { | 144 | { |
145 | struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev); | 145 | struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev); |
146 | 146 | ||
@@ -188,7 +188,7 @@ static const struct dev_pm_ops gpio_ir_recv_pm_ops = { | |||
188 | 188 | ||
189 | static struct platform_driver gpio_ir_recv_driver = { | 189 | static struct platform_driver gpio_ir_recv_driver = { |
190 | .probe = gpio_ir_recv_probe, | 190 | .probe = gpio_ir_recv_probe, |
191 | .remove = __devexit_p(gpio_ir_recv_remove), | 191 | .remove = gpio_ir_recv_remove, |
192 | .driver = { | 192 | .driver = { |
193 | .name = GPIO_IR_DRIVER_NAME, | 193 | .name = GPIO_IR_DRIVER_NAME, |
194 | .owner = THIS_MODULE, | 194 | .owner = THIS_MODULE, |
diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c index 5a9163da63c3..b99b096d8a8f 100644 --- a/drivers/media/rc/iguanair.c +++ b/drivers/media/rc/iguanair.c | |||
@@ -425,8 +425,8 @@ static void iguanair_close(struct rc_dev *rdev) | |||
425 | mutex_unlock(&ir->lock); | 425 | mutex_unlock(&ir->lock); |
426 | } | 426 | } |
427 | 427 | ||
428 | static int __devinit iguanair_probe(struct usb_interface *intf, | 428 | static int iguanair_probe(struct usb_interface *intf, |
429 | const struct usb_device_id *id) | 429 | const struct usb_device_id *id) |
430 | { | 430 | { |
431 | struct usb_device *udev = interface_to_usbdev(intf); | 431 | struct usb_device *udev = interface_to_usbdev(intf); |
432 | struct iguanair *ir; | 432 | struct iguanair *ir; |
@@ -538,7 +538,7 @@ out: | |||
538 | return ret; | 538 | return ret; |
539 | } | 539 | } |
540 | 540 | ||
541 | static void __devexit iguanair_disconnect(struct usb_interface *intf) | 541 | static void iguanair_disconnect(struct usb_interface *intf) |
542 | { | 542 | { |
543 | struct iguanair *ir = usb_get_intfdata(intf); | 543 | struct iguanair *ir = usb_get_intfdata(intf); |
544 | 544 | ||
@@ -604,7 +604,7 @@ static const struct usb_device_id iguanair_table[] = { | |||
604 | static struct usb_driver iguanair_driver = { | 604 | static struct usb_driver iguanair_driver = { |
605 | .name = DRIVER_NAME, | 605 | .name = DRIVER_NAME, |
606 | .probe = iguanair_probe, | 606 | .probe = iguanair_probe, |
607 | .disconnect = __devexit_p(iguanair_disconnect), | 607 | .disconnect = iguanair_disconnect, |
608 | .suspend = iguanair_suspend, | 608 | .suspend = iguanair_suspend, |
609 | .resume = iguanair_resume, | 609 | .resume = iguanair_resume, |
610 | .reset_resume = iguanair_resume, | 610 | .reset_resume = iguanair_resume, |
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index 8f6a28921ed4..78d109b978dd 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c | |||
@@ -255,7 +255,7 @@ static struct usb_device_id imon_usb_id_table[] = { | |||
255 | static struct usb_driver imon_driver = { | 255 | static struct usb_driver imon_driver = { |
256 | .name = MOD_NAME, | 256 | .name = MOD_NAME, |
257 | .probe = imon_probe, | 257 | .probe = imon_probe, |
258 | .disconnect = __devexit_p(imon_disconnect), | 258 | .disconnect = imon_disconnect, |
259 | .suspend = imon_suspend, | 259 | .suspend = imon_suspend, |
260 | .resume = imon_resume, | 260 | .resume = imon_resume, |
261 | .id_table = imon_usb_id_table, | 261 | .id_table = imon_usb_id_table, |
@@ -2288,8 +2288,8 @@ static void imon_init_display(struct imon_context *ictx, | |||
2288 | /** | 2288 | /** |
2289 | * Callback function for USB core API: Probe | 2289 | * Callback function for USB core API: Probe |
2290 | */ | 2290 | */ |
2291 | static int __devinit imon_probe(struct usb_interface *interface, | 2291 | static int imon_probe(struct usb_interface *interface, |
2292 | const struct usb_device_id *id) | 2292 | const struct usb_device_id *id) |
2293 | { | 2293 | { |
2294 | struct usb_device *usbdev = NULL; | 2294 | struct usb_device *usbdev = NULL; |
2295 | struct usb_host_interface *iface_desc = NULL; | 2295 | struct usb_host_interface *iface_desc = NULL; |
@@ -2372,7 +2372,7 @@ fail: | |||
2372 | /** | 2372 | /** |
2373 | * Callback function for USB core API: disconnect | 2373 | * Callback function for USB core API: disconnect |
2374 | */ | 2374 | */ |
2375 | static void __devexit imon_disconnect(struct usb_interface *interface) | 2375 | static void imon_disconnect(struct usb_interface *interface) |
2376 | { | 2376 | { |
2377 | struct imon_context *ictx; | 2377 | struct imon_context *ictx; |
2378 | struct device *dev; | 2378 | struct device *dev; |
diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c index 9e76c7b40af2..8ead492d03aa 100644 --- a/drivers/media/rc/ir-rx51.c +++ b/drivers/media/rc/ir-rx51.c | |||
@@ -443,7 +443,7 @@ static int lirc_rx51_resume(struct platform_device *dev) | |||
443 | 443 | ||
444 | #endif /* CONFIG_PM */ | 444 | #endif /* CONFIG_PM */ |
445 | 445 | ||
446 | static int __devinit lirc_rx51_probe(struct platform_device *dev) | 446 | static int lirc_rx51_probe(struct platform_device *dev) |
447 | { | 447 | { |
448 | lirc_rx51_driver.features = LIRC_RX51_DRIVER_FEATURES; | 448 | lirc_rx51_driver.features = LIRC_RX51_DRIVER_FEATURES; |
449 | lirc_rx51.pdata = dev->dev.platform_data; | 449 | lirc_rx51.pdata = dev->dev.platform_data; |
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 5e5a7f2b8184..1b8669b6d042 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c | |||
@@ -1620,7 +1620,7 @@ failure: | |||
1620 | return ret; | 1620 | return ret; |
1621 | } | 1621 | } |
1622 | 1622 | ||
1623 | static void __devexit ite_remove(struct pnp_dev *pdev) | 1623 | static void ite_remove(struct pnp_dev *pdev) |
1624 | { | 1624 | { |
1625 | struct ite_dev *dev = pnp_get_drvdata(pdev); | 1625 | struct ite_dev *dev = pnp_get_drvdata(pdev); |
1626 | unsigned long flags; | 1626 | unsigned long flags; |
@@ -1702,7 +1702,7 @@ static struct pnp_driver ite_driver = { | |||
1702 | .name = ITE_DRIVER_NAME, | 1702 | .name = ITE_DRIVER_NAME, |
1703 | .id_table = ite_ids, | 1703 | .id_table = ite_ids, |
1704 | .probe = ite_probe, | 1704 | .probe = ite_probe, |
1705 | .remove = __devexit_p(ite_remove), | 1705 | .remove = ite_remove, |
1706 | .suspend = ite_suspend, | 1706 | .suspend = ite_suspend, |
1707 | .resume = ite_resume, | 1707 | .resume = ite_resume, |
1708 | .shutdown = ite_shutdown, | 1708 | .shutdown = ite_shutdown, |
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index b2146cd99fd8..9afb9331217d 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c | |||
@@ -1229,8 +1229,8 @@ out: | |||
1229 | return NULL; | 1229 | return NULL; |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | static int __devinit mceusb_dev_probe(struct usb_interface *intf, | 1232 | static int mceusb_dev_probe(struct usb_interface *intf, |
1233 | const struct usb_device_id *id) | 1233 | const struct usb_device_id *id) |
1234 | { | 1234 | { |
1235 | struct usb_device *dev = interface_to_usbdev(intf); | 1235 | struct usb_device *dev = interface_to_usbdev(intf); |
1236 | struct usb_host_interface *idesc; | 1236 | struct usb_host_interface *idesc; |
@@ -1393,7 +1393,7 @@ mem_alloc_fail: | |||
1393 | } | 1393 | } |
1394 | 1394 | ||
1395 | 1395 | ||
1396 | static void __devexit mceusb_dev_disconnect(struct usb_interface *intf) | 1396 | static void mceusb_dev_disconnect(struct usb_interface *intf) |
1397 | { | 1397 | { |
1398 | struct usb_device *dev = interface_to_usbdev(intf); | 1398 | struct usb_device *dev = interface_to_usbdev(intf); |
1399 | struct mceusb_dev *ir = usb_get_intfdata(intf); | 1399 | struct mceusb_dev *ir = usb_get_intfdata(intf); |
@@ -1432,7 +1432,7 @@ static int mceusb_dev_resume(struct usb_interface *intf) | |||
1432 | static struct usb_driver mceusb_dev_driver = { | 1432 | static struct usb_driver mceusb_dev_driver = { |
1433 | .name = DRIVER_NAME, | 1433 | .name = DRIVER_NAME, |
1434 | .probe = mceusb_dev_probe, | 1434 | .probe = mceusb_dev_probe, |
1435 | .disconnect = __devexit_p(mceusb_dev_disconnect), | 1435 | .disconnect = mceusb_dev_disconnect, |
1436 | .suspend = mceusb_dev_suspend, | 1436 | .suspend = mceusb_dev_suspend, |
1437 | .resume = mceusb_dev_resume, | 1437 | .resume = mceusb_dev_resume, |
1438 | .reset_resume = mceusb_dev_resume, | 1438 | .reset_resume = mceusb_dev_resume, |
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index e4ea89a11eed..b8aa9abb31ff 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c | |||
@@ -1113,7 +1113,7 @@ failure: | |||
1113 | return ret; | 1113 | return ret; |
1114 | } | 1114 | } |
1115 | 1115 | ||
1116 | static void __devexit nvt_remove(struct pnp_dev *pdev) | 1116 | static void nvt_remove(struct pnp_dev *pdev) |
1117 | { | 1117 | { |
1118 | struct nvt_dev *nvt = pnp_get_drvdata(pdev); | 1118 | struct nvt_dev *nvt = pnp_get_drvdata(pdev); |
1119 | unsigned long flags; | 1119 | unsigned long flags; |
@@ -1211,7 +1211,7 @@ static struct pnp_driver nvt_driver = { | |||
1211 | .id_table = nvt_ids, | 1211 | .id_table = nvt_ids, |
1212 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, | 1212 | .flags = PNP_DRIVER_RES_DO_NOT_CHANGE, |
1213 | .probe = nvt_probe, | 1213 | .probe = nvt_probe, |
1214 | .remove = __devexit_p(nvt_remove), | 1214 | .remove = nvt_remove, |
1215 | .suspend = nvt_suspend, | 1215 | .suspend = nvt_suspend, |
1216 | .resume = nvt_resume, | 1216 | .resume = nvt_resume, |
1217 | .shutdown = nvt_shutdown, | 1217 | .shutdown = nvt_shutdown, |
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index a8887aba9faf..1800326f93e6 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c | |||
@@ -1102,8 +1102,8 @@ out: | |||
1102 | return NULL; | 1102 | return NULL; |
1103 | } | 1103 | } |
1104 | 1104 | ||
1105 | static int __devinit redrat3_dev_probe(struct usb_interface *intf, | 1105 | static int redrat3_dev_probe(struct usb_interface *intf, |
1106 | const struct usb_device_id *id) | 1106 | const struct usb_device_id *id) |
1107 | { | 1107 | { |
1108 | struct usb_device *udev = interface_to_usbdev(intf); | 1108 | struct usb_device *udev = interface_to_usbdev(intf); |
1109 | struct device *dev = &intf->dev; | 1109 | struct device *dev = &intf->dev; |
@@ -1241,7 +1241,7 @@ no_endpoints: | |||
1241 | return retval; | 1241 | return retval; |
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | static void __devexit redrat3_dev_disconnect(struct usb_interface *intf) | 1244 | static void redrat3_dev_disconnect(struct usb_interface *intf) |
1245 | { | 1245 | { |
1246 | struct usb_device *udev = interface_to_usbdev(intf); | 1246 | struct usb_device *udev = interface_to_usbdev(intf); |
1247 | struct redrat3_dev *rr3 = usb_get_intfdata(intf); | 1247 | struct redrat3_dev *rr3 = usb_get_intfdata(intf); |
@@ -1281,7 +1281,7 @@ static int redrat3_dev_resume(struct usb_interface *intf) | |||
1281 | static struct usb_driver redrat3_dev_driver = { | 1281 | static struct usb_driver redrat3_dev_driver = { |
1282 | .name = DRIVER_NAME, | 1282 | .name = DRIVER_NAME, |
1283 | .probe = redrat3_dev_probe, | 1283 | .probe = redrat3_dev_probe, |
1284 | .disconnect = __devexit_p(redrat3_dev_disconnect), | 1284 | .disconnect = redrat3_dev_disconnect, |
1285 | .suspend = redrat3_dev_suspend, | 1285 | .suspend = redrat3_dev_suspend, |
1286 | .resume = redrat3_dev_resume, | 1286 | .resume = redrat3_dev_resume, |
1287 | .reset_resume = redrat3_dev_resume, | 1287 | .reset_resume = redrat3_dev_resume, |
diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c index c720f12f661e..d7b11e6a9982 100644 --- a/drivers/media/rc/streamzap.c +++ b/drivers/media/rc/streamzap.c | |||
@@ -346,8 +346,8 @@ out: | |||
346 | * On any failure the return value is the ERROR | 346 | * On any failure the return value is the ERROR |
347 | * On success return 0 | 347 | * On success return 0 |
348 | */ | 348 | */ |
349 | static int __devinit streamzap_probe(struct usb_interface *intf, | 349 | static int streamzap_probe(struct usb_interface *intf, |
350 | const struct usb_device_id *id) | 350 | const struct usb_device_id *id) |
351 | { | 351 | { |
352 | struct usb_device *usbdev = interface_to_usbdev(intf); | 352 | struct usb_device *usbdev = interface_to_usbdev(intf); |
353 | struct usb_host_interface *iface_host; | 353 | struct usb_host_interface *iface_host; |
diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c index f0921b5483eb..78be8a914225 100644 --- a/drivers/media/rc/ttusbir.c +++ b/drivers/media/rc/ttusbir.c | |||
@@ -194,8 +194,8 @@ static void ttusbir_urb_complete(struct urb *urb) | |||
194 | dev_warn(tt->dev, "failed to resubmit urb: %d\n", rc); | 194 | dev_warn(tt->dev, "failed to resubmit urb: %d\n", rc); |
195 | } | 195 | } |
196 | 196 | ||
197 | static int __devinit ttusbir_probe(struct usb_interface *intf, | 197 | static int ttusbir_probe(struct usb_interface *intf, |
198 | const struct usb_device_id *id) | 198 | const struct usb_device_id *id) |
199 | { | 199 | { |
200 | struct ttusbir *tt; | 200 | struct ttusbir *tt; |
201 | struct usb_interface_descriptor *idesc; | 201 | struct usb_interface_descriptor *idesc; |
@@ -367,7 +367,7 @@ out: | |||
367 | return ret; | 367 | return ret; |
368 | } | 368 | } |
369 | 369 | ||
370 | static void __devexit ttusbir_disconnect(struct usb_interface *intf) | 370 | static void ttusbir_disconnect(struct usb_interface *intf) |
371 | { | 371 | { |
372 | struct ttusbir *tt = usb_get_intfdata(intf); | 372 | struct ttusbir *tt = usb_get_intfdata(intf); |
373 | struct usb_device *udev = tt->udev; | 373 | struct usb_device *udev = tt->udev; |
@@ -435,7 +435,7 @@ static struct usb_driver ttusbir_driver = { | |||
435 | .suspend = ttusbir_suspend, | 435 | .suspend = ttusbir_suspend, |
436 | .resume = ttusbir_resume, | 436 | .resume = ttusbir_resume, |
437 | .reset_resume = ttusbir_resume, | 437 | .reset_resume = ttusbir_resume, |
438 | .disconnect = __devexit_p(ttusbir_disconnect) | 438 | .disconnect = ttusbir_disconnect, |
439 | }; | 439 | }; |
440 | 440 | ||
441 | module_usb_driver(ttusbir_driver); | 441 | module_usb_driver(ttusbir_driver); |
diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index 7f3c476dde05..930c61499037 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c | |||
@@ -1008,7 +1008,7 @@ wbcir_resume(struct pnp_dev *device) | |||
1008 | return 0; | 1008 | return 0; |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | static int __devinit | 1011 | static int |
1012 | wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id) | 1012 | wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id) |
1013 | { | 1013 | { |
1014 | struct device *dev = &device->dev; | 1014 | struct device *dev = &device->dev; |
@@ -1155,7 +1155,7 @@ exit: | |||
1155 | return err; | 1155 | return err; |
1156 | } | 1156 | } |
1157 | 1157 | ||
1158 | static void __devexit | 1158 | static void |
1159 | wbcir_remove(struct pnp_dev *device) | 1159 | wbcir_remove(struct pnp_dev *device) |
1160 | { | 1160 | { |
1161 | struct wbcir_data *data = pnp_get_drvdata(device); | 1161 | struct wbcir_data *data = pnp_get_drvdata(device); |
@@ -1201,7 +1201,7 @@ static struct pnp_driver wbcir_driver = { | |||
1201 | .name = WBCIR_NAME, | 1201 | .name = WBCIR_NAME, |
1202 | .id_table = wbcir_ids, | 1202 | .id_table = wbcir_ids, |
1203 | .probe = wbcir_probe, | 1203 | .probe = wbcir_probe, |
1204 | .remove = __devexit_p(wbcir_remove), | 1204 | .remove = wbcir_remove, |
1205 | .suspend = wbcir_suspend, | 1205 | .suspend = wbcir_suspend, |
1206 | .resume = wbcir_resume, | 1206 | .resume = wbcir_resume, |
1207 | .shutdown = wbcir_shutdown | 1207 | .shutdown = wbcir_shutdown |
diff --git a/drivers/media/usb/gspca/spca506.c b/drivers/media/usb/gspca/spca506.c index bab01c86c315..bcd2c04c770e 100644 --- a/drivers/media/usb/gspca/spca506.c +++ b/drivers/media/usb/gspca/spca506.c | |||
@@ -590,8 +590,7 @@ static const struct usb_device_id device_table[] = { | |||
590 | MODULE_DEVICE_TABLE(usb, device_table); | 590 | MODULE_DEVICE_TABLE(usb, device_table); |
591 | 591 | ||
592 | /* -- device connect -- */ | 592 | /* -- device connect -- */ |
593 | static int __devinit sd_probe(struct usb_interface *intf, | 593 | static int sd_probe(struct usb_interface *intf, const struct usb_device_id *id) |
594 | const struct usb_device_id *id) | ||
595 | { | 594 | { |
596 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 595 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
597 | THIS_MODULE); | 596 | THIS_MODULE); |
diff --git a/drivers/media/usb/siano/smsusb.c b/drivers/media/usb/siano/smsusb.c index aac622200e99..de2c10289eec 100644 --- a/drivers/media/usb/siano/smsusb.c +++ b/drivers/media/usb/siano/smsusb.c | |||
@@ -389,7 +389,7 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id) | |||
389 | return rc; | 389 | return rc; |
390 | } | 390 | } |
391 | 391 | ||
392 | static int __devinit smsusb_probe(struct usb_interface *intf, | 392 | static int smsusb_probe(struct usb_interface *intf, |
393 | const struct usb_device_id *id) | 393 | const struct usb_device_id *id) |
394 | { | 394 | { |
395 | struct usb_device *udev = interface_to_usbdev(intf); | 395 | struct usb_device *udev = interface_to_usbdev(intf); |
diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index 5c36a57e6590..ad7f7448072e 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c | |||
@@ -1363,7 +1363,7 @@ static void usbvision_unregister_video(struct usb_usbvision *usbvision) | |||
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | /* register video4linux devices */ | 1365 | /* register video4linux devices */ |
1366 | static int __devinit usbvision_register_video(struct usb_usbvision *usbvision) | 1366 | static int usbvision_register_video(struct usb_usbvision *usbvision) |
1367 | { | 1367 | { |
1368 | /* Video Device: */ | 1368 | /* Video Device: */ |
1369 | usbvision->vdev = usbvision_vdev_init(usbvision, | 1369 | usbvision->vdev = usbvision_vdev_init(usbvision, |
@@ -1510,8 +1510,8 @@ static void usbvision_configure_video(struct usb_usbvision *usbvision) | |||
1510 | * if it looks like USBVISION video device | 1510 | * if it looks like USBVISION video device |
1511 | * | 1511 | * |
1512 | */ | 1512 | */ |
1513 | static int __devinit usbvision_probe(struct usb_interface *intf, | 1513 | static int usbvision_probe(struct usb_interface *intf, |
1514 | const struct usb_device_id *devid) | 1514 | const struct usb_device_id *devid) |
1515 | { | 1515 | { |
1516 | struct usb_device *dev = usb_get_dev(interface_to_usbdev(intf)); | 1516 | struct usb_device *dev = usb_get_dev(interface_to_usbdev(intf)); |
1517 | struct usb_interface *uif; | 1517 | struct usb_interface *uif; |
@@ -1619,7 +1619,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf, | |||
1619 | * with no ill consequences. | 1619 | * with no ill consequences. |
1620 | * | 1620 | * |
1621 | */ | 1621 | */ |
1622 | static void __devexit usbvision_disconnect(struct usb_interface *intf) | 1622 | static void usbvision_disconnect(struct usb_interface *intf) |
1623 | { | 1623 | { |
1624 | struct usb_usbvision *usbvision = to_usbvision(usb_get_intfdata(intf)); | 1624 | struct usb_usbvision *usbvision = to_usbvision(usb_get_intfdata(intf)); |
1625 | 1625 | ||
@@ -1664,7 +1664,7 @@ static struct usb_driver usbvision_driver = { | |||
1664 | .name = "usbvision", | 1664 | .name = "usbvision", |
1665 | .id_table = usbvision_table, | 1665 | .id_table = usbvision_table, |
1666 | .probe = usbvision_probe, | 1666 | .probe = usbvision_probe, |
1667 | .disconnect = __devexit_p(usbvision_disconnect), | 1667 | .disconnect = usbvision_disconnect, |
1668 | }; | 1668 | }; |
1669 | 1669 | ||
1670 | /* | 1670 | /* |