aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/agp/ali-agp.c4
-rw-r--r--drivers/char/agp/amd-k7-agp.c4
-rw-r--r--drivers/char/agp/amd64-agp.c2
-rw-r--r--drivers/char/agp/ati-agp.c4
-rw-r--r--drivers/char/agp/efficeon-agp.c2
-rw-r--r--drivers/char/agp/i460-agp.c2
-rw-r--r--drivers/char/agp/intel-agp.c2
-rw-r--r--drivers/char/agp/nvidia-agp.c2
-rw-r--r--drivers/char/agp/sgi-agp.c2
-rw-r--r--drivers/char/agp/sis-agp.c8
-rw-r--r--drivers/char/agp/sworks-agp.c2
-rw-r--r--drivers/char/agp/uninorth-agp.c4
-rw-r--r--drivers/char/agp/via-agp.c4
-rw-r--r--drivers/char/hpet.c5
-rw-r--r--drivers/char/hw_random/atmel-rng.c2
-rw-r--r--drivers/char/hw_random/bcm63xx-rng.c2
-rw-r--r--drivers/char/hw_random/exynos-rng.c2
-rw-r--r--drivers/char/hw_random/n2-drv.c4
-rw-r--r--drivers/char/hw_random/pasemi-rng.c2
-rw-r--r--drivers/char/hw_random/picoxcell-rng.c2
-rw-r--r--drivers/char/hw_random/ppc4xx-rng.c2
-rw-r--r--drivers/char/hw_random/timeriomem-rng.c2
-rw-r--r--drivers/char/hw_random/virtio-rng.c2
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c32
-rw-r--r--drivers/char/mbcs.c2
-rw-r--r--drivers/char/mem.c10
-rw-r--r--drivers/char/pc8736x_gpio.c3
-rw-r--r--drivers/char/ps3flash.c2
-rw-r--r--drivers/char/sonypi.c14
-rw-r--r--drivers/char/tb0219.c6
-rw-r--r--drivers/char/tpm/tpm_i2c_infineon.c2
-rw-r--r--drivers/char/tpm/tpm_ibmvtpm.c4
-rw-r--r--drivers/char/tpm/tpm_infineon.c2
-rw-r--r--drivers/char/tpm/tpm_tis.c4
-rw-r--r--drivers/char/virtio_console.c2
-rw-r--r--drivers/char/xilinx_hwicap/xilinx_hwicap.c14
36 files changed, 83 insertions, 81 deletions
diff --git a/drivers/char/agp/ali-agp.c b/drivers/char/agp/ali-agp.c
index fd793519ea2b..478493543b32 100644
--- a/drivers/char/agp/ali-agp.c
+++ b/drivers/char/agp/ali-agp.c
@@ -249,7 +249,7 @@ static const struct agp_bridge_driver ali_m1541_bridge = {
249}; 249};
250 250
251 251
252static struct agp_device_ids ali_agp_device_ids[] __devinitdata = 252static struct agp_device_ids ali_agp_device_ids[] =
253{ 253{
254 { 254 {
255 .device_id = PCI_DEVICE_ID_AL_M1541, 255 .device_id = PCI_DEVICE_ID_AL_M1541,
@@ -374,7 +374,7 @@ found:
374 return agp_add_bridge(bridge); 374 return agp_add_bridge(bridge);
375} 375}
376 376
377static void __devexit agp_ali_remove(struct pci_dev *pdev) 377static void agp_ali_remove(struct pci_dev *pdev)
378{ 378{
379 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 379 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
380 380
diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c
index f7e88787af97..1b2101160e98 100644
--- a/drivers/char/agp/amd-k7-agp.c
+++ b/drivers/char/agp/amd-k7-agp.c
@@ -388,7 +388,7 @@ static const struct agp_bridge_driver amd_irongate_driver = {
388 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 388 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
389}; 389};
390 390
391static struct agp_device_ids amd_agp_device_ids[] __devinitdata = 391static struct agp_device_ids amd_agp_device_ids[] =
392{ 392{
393 { 393 {
394 .device_id = PCI_DEVICE_ID_AMD_FE_GATE_7006, 394 .device_id = PCI_DEVICE_ID_AMD_FE_GATE_7006,
@@ -480,7 +480,7 @@ static int __devinit agp_amdk7_probe(struct pci_dev *pdev,
480 return agp_add_bridge(bridge); 480 return agp_add_bridge(bridge);
481} 481}
482 482
483static void __devexit agp_amdk7_remove(struct pci_dev *pdev) 483static void agp_amdk7_remove(struct pci_dev *pdev)
484{ 484{
485 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 485 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
486 486
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
index 444f8b6ab411..061d46209b1a 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -579,7 +579,7 @@ static int __devinit agp_amd64_probe(struct pci_dev *pdev,
579 return 0; 579 return 0;
580} 580}
581 581
582static void __devexit agp_amd64_remove(struct pci_dev *pdev) 582static void agp_amd64_remove(struct pci_dev *pdev)
583{ 583{
584 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 584 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
585 585
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c
index dc30e2243494..ed0433576e74 100644
--- a/drivers/char/agp/ati-agp.c
+++ b/drivers/char/agp/ati-agp.c
@@ -445,7 +445,7 @@ static const struct agp_bridge_driver ati_generic_bridge = {
445}; 445};
446 446
447 447
448static struct agp_device_ids ati_agp_device_ids[] __devinitdata = 448static struct agp_device_ids ati_agp_device_ids[] =
449{ 449{
450 { 450 {
451 .device_id = PCI_DEVICE_ID_ATI_RS100, 451 .device_id = PCI_DEVICE_ID_ATI_RS100,
@@ -533,7 +533,7 @@ found:
533 return agp_add_bridge(bridge); 533 return agp_add_bridge(bridge);
534} 534}
535 535
536static void __devexit agp_ati_remove(struct pci_dev *pdev) 536static void agp_ati_remove(struct pci_dev *pdev)
537{ 537{
538 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 538 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
539 539
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c
index d607f53d8afc..55f3e33a309f 100644
--- a/drivers/char/agp/efficeon-agp.c
+++ b/drivers/char/agp/efficeon-agp.c
@@ -407,7 +407,7 @@ static int __devinit agp_efficeon_probe(struct pci_dev *pdev,
407 return agp_add_bridge(bridge); 407 return agp_add_bridge(bridge);
408} 408}
409 409
410static void __devexit agp_efficeon_remove(struct pci_dev *pdev) 410static void agp_efficeon_remove(struct pci_dev *pdev)
411{ 411{
412 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 412 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
413 413
diff --git a/drivers/char/agp/i460-agp.c b/drivers/char/agp/i460-agp.c
index 75b763cb3ea1..d328b662e50d 100644
--- a/drivers/char/agp/i460-agp.c
+++ b/drivers/char/agp/i460-agp.c
@@ -611,7 +611,7 @@ static int __devinit agp_intel_i460_probe(struct pci_dev *pdev,
611 return agp_add_bridge(bridge); 611 return agp_add_bridge(bridge);
612} 612}
613 613
614static void __devexit agp_intel_i460_remove(struct pci_dev *pdev) 614static void agp_intel_i460_remove(struct pci_dev *pdev)
615{ 615{
616 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 616 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
617 617
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index b130df0a1958..f3a8f52b5a00 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -819,7 +819,7 @@ found_gmch:
819 return err; 819 return err;
820} 820}
821 821
822static void __devexit agp_intel_remove(struct pci_dev *pdev) 822static void agp_intel_remove(struct pci_dev *pdev)
823{ 823{
824 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 824 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
825 825
diff --git a/drivers/char/agp/nvidia-agp.c b/drivers/char/agp/nvidia-agp.c
index b9734a978186..66e0868000f4 100644
--- a/drivers/char/agp/nvidia-agp.c
+++ b/drivers/char/agp/nvidia-agp.c
@@ -388,7 +388,7 @@ static int __devinit agp_nvidia_probe(struct pci_dev *pdev,
388 return agp_add_bridge(bridge); 388 return agp_add_bridge(bridge);
389} 389}
390 390
391static void __devexit agp_nvidia_remove(struct pci_dev *pdev) 391static void agp_nvidia_remove(struct pci_dev *pdev)
392{ 392{
393 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 393 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
394 394
diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c
index 3a5af2f9b015..a18791d7718a 100644
--- a/drivers/char/agp/sgi-agp.c
+++ b/drivers/char/agp/sgi-agp.c
@@ -327,7 +327,7 @@ static int __devinit agp_sgi_init(void)
327 return 0; 327 return 0;
328} 328}
329 329
330static void __devexit agp_sgi_cleanup(void) 330static void agp_sgi_cleanup(void)
331{ 331{
332 kfree(sgi_tioca_agp_bridges); 332 kfree(sgi_tioca_agp_bridges);
333 sgi_tioca_agp_bridges = NULL; 333 sgi_tioca_agp_bridges = NULL;
diff --git a/drivers/char/agp/sis-agp.c b/drivers/char/agp/sis-agp.c
index 08704ae53956..93d1d31f9d0c 100644
--- a/drivers/char/agp/sis-agp.c
+++ b/drivers/char/agp/sis-agp.c
@@ -17,8 +17,8 @@
17#define PCI_DEVICE_ID_SI_662 0x0662 17#define PCI_DEVICE_ID_SI_662 0x0662
18#define PCI_DEVICE_ID_SI_671 0x0671 18#define PCI_DEVICE_ID_SI_671 0x0671
19 19
20static bool __devinitdata agp_sis_force_delay = 0; 20static bool agp_sis_force_delay = 0;
21static int __devinitdata agp_sis_agp_spec = -1; 21static int agp_sis_agp_spec = -1;
22 22
23static int sis_fetch_size(void) 23static int sis_fetch_size(void)
24{ 24{
@@ -148,7 +148,7 @@ static struct agp_bridge_driver sis_driver = {
148}; 148};
149 149
150// chipsets that require the 'delay hack' 150// chipsets that require the 'delay hack'
151static int sis_broken_chipsets[] __devinitdata = { 151static int sis_broken_chipsets[] = {
152 PCI_DEVICE_ID_SI_648, 152 PCI_DEVICE_ID_SI_648,
153 PCI_DEVICE_ID_SI_746, 153 PCI_DEVICE_ID_SI_746,
154 0 // terminator 154 0 // terminator
@@ -211,7 +211,7 @@ static int __devinit agp_sis_probe(struct pci_dev *pdev,
211 return agp_add_bridge(bridge); 211 return agp_add_bridge(bridge);
212} 212}
213 213
214static void __devexit agp_sis_remove(struct pci_dev *pdev) 214static void agp_sis_remove(struct pci_dev *pdev)
215{ 215{
216 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 216 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
217 217
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c
index f02f9b07fd4c..26020fb8d7a9 100644
--- a/drivers/char/agp/sworks-agp.c
+++ b/drivers/char/agp/sworks-agp.c
@@ -518,7 +518,7 @@ static int __devinit agp_serverworks_probe(struct pci_dev *pdev,
518 return agp_add_bridge(bridge); 518 return agp_add_bridge(bridge);
519} 519}
520 520
521static void __devexit agp_serverworks_remove(struct pci_dev *pdev) 521static void agp_serverworks_remove(struct pci_dev *pdev)
522{ 522{
523 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 523 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
524 524
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c
index a32c492baf5c..011967ad3eed 100644
--- a/drivers/char/agp/uninorth-agp.c
+++ b/drivers/char/agp/uninorth-agp.c
@@ -557,7 +557,7 @@ const struct agp_bridge_driver u3_agp_driver = {
557 .needs_scratch_page = true, 557 .needs_scratch_page = true,
558}; 558};
559 559
560static struct agp_device_ids uninorth_agp_device_ids[] __devinitdata = { 560static struct agp_device_ids uninorth_agp_device_ids[] = {
561 { 561 {
562 .device_id = PCI_DEVICE_ID_APPLE_UNI_N_AGP, 562 .device_id = PCI_DEVICE_ID_APPLE_UNI_N_AGP,
563 .chipset_name = "UniNorth", 563 .chipset_name = "UniNorth",
@@ -663,7 +663,7 @@ static int __devinit agp_uninorth_probe(struct pci_dev *pdev,
663 return agp_add_bridge(bridge); 663 return agp_add_bridge(bridge);
664} 664}
665 665
666static void __devexit agp_uninorth_remove(struct pci_dev *pdev) 666static void agp_uninorth_remove(struct pci_dev *pdev)
667{ 667{
668 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 668 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
669 669
diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c
index 8bc384937401..6818595bb863 100644
--- a/drivers/char/agp/via-agp.c
+++ b/drivers/char/agp/via-agp.c
@@ -224,7 +224,7 @@ static const struct agp_bridge_driver via_driver = {
224 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 224 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
225}; 225};
226 226
227static struct agp_device_ids via_agp_device_ids[] __devinitdata = 227static struct agp_device_ids via_agp_device_ids[] =
228{ 228{
229 { 229 {
230 .device_id = PCI_DEVICE_ID_VIA_82C597_0, 230 .device_id = PCI_DEVICE_ID_VIA_82C597_0,
@@ -485,7 +485,7 @@ static int __devinit agp_via_probe(struct pci_dev *pdev,
485 return agp_add_bridge(bridge); 485 return agp_add_bridge(bridge);
486} 486}
487 487
488static void __devexit agp_via_remove(struct pci_dev *pdev) 488static void agp_via_remove(struct pci_dev *pdev)
489{ 489{
490 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); 490 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
491 491
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index dfd7876f127c..fe6d4be48296 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -816,7 +816,7 @@ static unsigned long __hpet_calibrate(struct hpets *hpetp)
816 816
817static unsigned long hpet_calibrate(struct hpets *hpetp) 817static unsigned long hpet_calibrate(struct hpets *hpetp)
818{ 818{
819 unsigned long ret = -1; 819 unsigned long ret = ~0UL;
820 unsigned long tmp; 820 unsigned long tmp;
821 821
822 /* 822 /*
@@ -1001,6 +1001,9 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
1001 irqp = &res->data.extended_irq; 1001 irqp = &res->data.extended_irq;
1002 1002
1003 for (i = 0; i < irqp->interrupt_count; i++) { 1003 for (i = 0; i < irqp->interrupt_count; i++) {
1004 if (hdp->hd_nirqs >= HPET_MAX_TIMERS)
1005 break;
1006
1004 irq = acpi_register_gsi(NULL, irqp->interrupts[i], 1007 irq = acpi_register_gsi(NULL, irqp->interrupts[i],
1005 irqp->triggering, irqp->polarity); 1008 irqp->triggering, irqp->polarity);
1006 if (irq < 0) 1009 if (irq < 0)
diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c
index 731c9046cf7b..5a4a6e70478b 100644
--- a/drivers/char/hw_random/atmel-rng.c
+++ b/drivers/char/hw_random/atmel-rng.c
@@ -98,7 +98,7 @@ err_enable:
98 return ret; 98 return ret;
99} 99}
100 100
101static int __devexit atmel_trng_remove(struct platform_device *pdev) 101static int atmel_trng_remove(struct platform_device *pdev)
102{ 102{
103 struct atmel_trng *trng = platform_get_drvdata(pdev); 103 struct atmel_trng *trng = platform_get_drvdata(pdev);
104 104
diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c
index aec6a4277caa..ae95bcb18d4a 100644
--- a/drivers/char/hw_random/bcm63xx-rng.c
+++ b/drivers/char/hw_random/bcm63xx-rng.c
@@ -145,7 +145,7 @@ out:
145 return ret; 145 return ret;
146} 146}
147 147
148static int __devexit bcm63xx_rng_remove(struct platform_device *pdev) 148static int bcm63xx_rng_remove(struct platform_device *pdev)
149{ 149{
150 struct hwrng *rng = platform_get_drvdata(pdev); 150 struct hwrng *rng = platform_get_drvdata(pdev);
151 struct bcm63xx_rng_priv *priv = to_rng_priv(rng); 151 struct bcm63xx_rng_priv *priv = to_rng_priv(rng);
diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c
index 232ba9ce579c..bdc852ea7632 100644
--- a/drivers/char/hw_random/exynos-rng.c
+++ b/drivers/char/hw_random/exynos-rng.c
@@ -134,7 +134,7 @@ static int __devinit exynos_rng_probe(struct platform_device *pdev)
134 return hwrng_register(&exynos_rng->rng); 134 return hwrng_register(&exynos_rng->rng);
135} 135}
136 136
137static int __devexit exynos_rng_remove(struct platform_device *pdev) 137static int exynos_rng_remove(struct platform_device *pdev)
138{ 138{
139 struct exynos_rng *exynos_rng = platform_get_drvdata(pdev); 139 struct exynos_rng *exynos_rng = platform_get_drvdata(pdev);
140 140
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index ebd48f0135da..d68a72a08b51 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -25,7 +25,7 @@
25#define DRV_MODULE_VERSION "0.2" 25#define DRV_MODULE_VERSION "0.2"
26#define DRV_MODULE_RELDATE "July 27, 2011" 26#define DRV_MODULE_RELDATE "July 27, 2011"
27 27
28static char version[] __devinitdata = 28static char version[] =
29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
30 30
31MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 31MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
@@ -719,7 +719,7 @@ out:
719 return err; 719 return err;
720} 720}
721 721
722static int __devexit n2rng_remove(struct platform_device *op) 722static int n2rng_remove(struct platform_device *op)
723{ 723{
724 struct n2rng *np = dev_get_drvdata(&op->dev); 724 struct n2rng *np = dev_get_drvdata(&op->dev);
725 725
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c
index 3a632673aed5..a1f70407cc9e 100644
--- a/drivers/char/hw_random/pasemi-rng.c
+++ b/drivers/char/hw_random/pasemi-rng.c
@@ -122,7 +122,7 @@ static int __devinit rng_probe(struct platform_device *ofdev)
122 return err; 122 return err;
123} 123}
124 124
125static int __devexit rng_remove(struct platform_device *dev) 125static int rng_remove(struct platform_device *dev)
126{ 126{
127 void __iomem *rng_regs = (void __iomem *)pasemi_rng.priv; 127 void __iomem *rng_regs = (void __iomem *)pasemi_rng.priv;
128 128
diff --git a/drivers/char/hw_random/picoxcell-rng.c b/drivers/char/hw_random/picoxcell-rng.c
index 97bd891422c7..d4b24c1dd48e 100644
--- a/drivers/char/hw_random/picoxcell-rng.c
+++ b/drivers/char/hw_random/picoxcell-rng.c
@@ -151,7 +151,7 @@ err_enable:
151 return ret; 151 return ret;
152} 152}
153 153
154static int __devexit picoxcell_trng_remove(struct platform_device *pdev) 154static int picoxcell_trng_remove(struct platform_device *pdev)
155{ 155{
156 hwrng_unregister(&picoxcell_trng); 156 hwrng_unregister(&picoxcell_trng);
157 clk_disable(rng_clk); 157 clk_disable(rng_clk);
diff --git a/drivers/char/hw_random/ppc4xx-rng.c b/drivers/char/hw_random/ppc4xx-rng.c
index c51762c13031..af6506a69cd9 100644
--- a/drivers/char/hw_random/ppc4xx-rng.c
+++ b/drivers/char/hw_random/ppc4xx-rng.c
@@ -111,7 +111,7 @@ static int __devinit ppc4xx_rng_probe(struct platform_device *dev)
111 return err; 111 return err;
112} 112}
113 113
114static int __devexit ppc4xx_rng_remove(struct platform_device *dev) 114static int ppc4xx_rng_remove(struct platform_device *dev)
115{ 115{
116 void __iomem *rng_regs = (void __iomem *) ppc4xx_rng.priv; 116 void __iomem *rng_regs = (void __iomem *) ppc4xx_rng.priv;
117 117
diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem-rng.c
index f1a1618db1fb..3a1abc9417e4 100644
--- a/drivers/char/hw_random/timeriomem-rng.c
+++ b/drivers/char/hw_random/timeriomem-rng.c
@@ -130,7 +130,7 @@ failed:
130 return ret; 130 return ret;
131} 131}
132 132
133static int __devexit timeriomem_rng_remove(struct platform_device *pdev) 133static int timeriomem_rng_remove(struct platform_device *pdev)
134{ 134{
135 del_timer_sync(&timeriomem_rng_timer); 135 del_timer_sync(&timeriomem_rng_timer);
136 hwrng_unregister(&timeriomem_rng_ops); 136 hwrng_unregister(&timeriomem_rng_ops);
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index 5708299507d0..621f595f1a98 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -119,7 +119,7 @@ static int virtrng_probe(struct virtio_device *vdev)
119 return probe_common(vdev); 119 return probe_common(vdev);
120} 120}
121 121
122static void __devexit virtrng_remove(struct virtio_device *vdev) 122static void virtrng_remove(struct virtio_device *vdev)
123{ 123{
124 remove_common(vdev); 124 remove_common(vdev);
125} 125}
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 32a6c7e256bd..20ab5b3a8915 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -1836,7 +1836,7 @@ static int hotmod_handler(const char *val, struct kernel_param *kp)
1836 return rv; 1836 return rv;
1837} 1837}
1838 1838
1839static int __devinit hardcode_find_bmc(void) 1839static int hardcode_find_bmc(void)
1840{ 1840{
1841 int ret = -ENODEV; 1841 int ret = -ENODEV;
1842 int i; 1842 int i;
@@ -2023,7 +2023,7 @@ struct SPMITable {
2023 s8 spmi_id[1]; /* A '\0' terminated array starts here. */ 2023 s8 spmi_id[1]; /* A '\0' terminated array starts here. */
2024}; 2024};
2025 2025
2026static int __devinit try_init_spmi(struct SPMITable *spmi) 2026static int try_init_spmi(struct SPMITable *spmi)
2027{ 2027{
2028 struct smi_info *info; 2028 struct smi_info *info;
2029 2029
@@ -2106,7 +2106,7 @@ static int __devinit try_init_spmi(struct SPMITable *spmi)
2106 return 0; 2106 return 0;
2107} 2107}
2108 2108
2109static void __devinit spmi_find_bmc(void) 2109static void spmi_find_bmc(void)
2110{ 2110{
2111 acpi_status status; 2111 acpi_status status;
2112 struct SPMITable *spmi; 2112 struct SPMITable *spmi;
@@ -2128,7 +2128,7 @@ static void __devinit spmi_find_bmc(void)
2128 } 2128 }
2129} 2129}
2130 2130
2131static int __devinit ipmi_pnp_probe(struct pnp_dev *dev, 2131static int ipmi_pnp_probe(struct pnp_dev *dev,
2132 const struct pnp_device_id *dev_id) 2132 const struct pnp_device_id *dev_id)
2133{ 2133{
2134 struct acpi_device *acpi_dev; 2134 struct acpi_device *acpi_dev;
@@ -2228,7 +2228,7 @@ err_free:
2228 return -EINVAL; 2228 return -EINVAL;
2229} 2229}
2230 2230
2231static void __devexit ipmi_pnp_remove(struct pnp_dev *dev) 2231static void ipmi_pnp_remove(struct pnp_dev *dev)
2232{ 2232{
2233 struct smi_info *info = pnp_get_drvdata(dev); 2233 struct smi_info *info = pnp_get_drvdata(dev);
2234 2234
@@ -2258,7 +2258,7 @@ struct dmi_ipmi_data {
2258 u8 slave_addr; 2258 u8 slave_addr;
2259}; 2259};
2260 2260
2261static int __devinit decode_dmi(const struct dmi_header *dm, 2261static int decode_dmi(const struct dmi_header *dm,
2262 struct dmi_ipmi_data *dmi) 2262 struct dmi_ipmi_data *dmi)
2263{ 2263{
2264 const u8 *data = (const u8 *)dm; 2264 const u8 *data = (const u8 *)dm;
@@ -2320,7 +2320,7 @@ static int __devinit decode_dmi(const struct dmi_header *dm,
2320 return 0; 2320 return 0;
2321} 2321}
2322 2322
2323static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data) 2323static void try_init_dmi(struct dmi_ipmi_data *ipmi_data)
2324{ 2324{
2325 struct smi_info *info; 2325 struct smi_info *info;
2326 2326
@@ -2388,7 +2388,7 @@ static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data)
2388 kfree(info); 2388 kfree(info);
2389} 2389}
2390 2390
2391static void __devinit dmi_find_bmc(void) 2391static void dmi_find_bmc(void)
2392{ 2392{
2393 const struct dmi_device *dev = NULL; 2393 const struct dmi_device *dev = NULL;
2394 struct dmi_ipmi_data data; 2394 struct dmi_ipmi_data data;
@@ -2424,7 +2424,7 @@ static void ipmi_pci_cleanup(struct smi_info *info)
2424 pci_disable_device(pdev); 2424 pci_disable_device(pdev);
2425} 2425}
2426 2426
2427static int __devinit ipmi_pci_probe_regspacing(struct smi_info *info) 2427static int ipmi_pci_probe_regspacing(struct smi_info *info)
2428{ 2428{
2429 if (info->si_type == SI_KCS) { 2429 if (info->si_type == SI_KCS) {
2430 unsigned char status; 2430 unsigned char status;
@@ -2456,7 +2456,7 @@ static int __devinit ipmi_pci_probe_regspacing(struct smi_info *info)
2456 return DEFAULT_REGSPACING; 2456 return DEFAULT_REGSPACING;
2457} 2457}
2458 2458
2459static int __devinit ipmi_pci_probe(struct pci_dev *pdev, 2459static int ipmi_pci_probe(struct pci_dev *pdev,
2460 const struct pci_device_id *ent) 2460 const struct pci_device_id *ent)
2461{ 2461{
2462 int rv; 2462 int rv;
@@ -2529,7 +2529,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
2529 return 0; 2529 return 0;
2530} 2530}
2531 2531
2532static void __devexit ipmi_pci_remove(struct pci_dev *pdev) 2532static void ipmi_pci_remove(struct pci_dev *pdev)
2533{ 2533{
2534 struct smi_info *info = pci_get_drvdata(pdev); 2534 struct smi_info *info = pci_get_drvdata(pdev);
2535 cleanup_one_si(info); 2535 cleanup_one_si(info);
@@ -2551,7 +2551,7 @@ static struct pci_driver ipmi_pci_driver = {
2551#endif /* CONFIG_PCI */ 2551#endif /* CONFIG_PCI */
2552 2552
2553static struct of_device_id ipmi_match[]; 2553static struct of_device_id ipmi_match[];
2554static int __devinit ipmi_probe(struct platform_device *dev) 2554static int ipmi_probe(struct platform_device *dev)
2555{ 2555{
2556#ifdef CONFIG_OF 2556#ifdef CONFIG_OF
2557 const struct of_device_id *match; 2557 const struct of_device_id *match;
@@ -2635,7 +2635,7 @@ static int __devinit ipmi_probe(struct platform_device *dev)
2635 return 0; 2635 return 0;
2636} 2636}
2637 2637
2638static int __devexit ipmi_remove(struct platform_device *dev) 2638static int ipmi_remove(struct platform_device *dev)
2639{ 2639{
2640#ifdef CONFIG_OF 2640#ifdef CONFIG_OF
2641 cleanup_one_si(dev_get_drvdata(&dev->dev)); 2641 cleanup_one_si(dev_get_drvdata(&dev->dev));
@@ -3047,7 +3047,7 @@ static inline void wait_for_timer_and_thread(struct smi_info *smi_info)
3047 } 3047 }
3048} 3048}
3049 3049
3050static __devinitdata struct ipmi_default_vals 3050static struct ipmi_default_vals
3051{ 3051{
3052 int type; 3052 int type;
3053 int port; 3053 int port;
@@ -3059,7 +3059,7 @@ static __devinitdata struct ipmi_default_vals
3059 { .port = 0 } 3059 { .port = 0 }
3060}; 3060};
3061 3061
3062static void __devinit default_find_bmc(void) 3062static void default_find_bmc(void)
3063{ 3063{
3064 struct smi_info *info; 3064 struct smi_info *info;
3065 int i; 3065 int i;
@@ -3359,7 +3359,7 @@ static int try_smi_init(struct smi_info *new_smi)
3359 return rv; 3359 return rv;
3360} 3360}
3361 3361
3362static int __devinit init_ipmi_si(void) 3362static int init_ipmi_si(void)
3363{ 3363{
3364 int i; 3364 int i;
3365 char *str; 3365 char *str;
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c
index f74e892711dd..e5d3e3f7a49b 100644
--- a/drivers/char/mbcs.c
+++ b/drivers/char/mbcs.c
@@ -799,7 +799,7 @@ static int mbcs_remove(struct cx_dev *dev)
799 return 0; 799 return 0;
800} 800}
801 801
802static const struct cx_device_id __devinitconst mbcs_id_table[] = { 802static const struct cx_device_id mbcs_id_table[] = {
803 { 803 {
804 .part_num = MBCS_PART_NUM, 804 .part_num = MBCS_PART_NUM,
805 .mfg_num = MBCS_MFG_NUM, 805 .mfg_num = MBCS_MFG_NUM,
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 0537903c985b..c6fa3bc2baa8 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -48,7 +48,7 @@ static inline unsigned long size_inside_page(unsigned long start,
48} 48}
49 49
50#ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE 50#ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE
51static inline int valid_phys_addr_range(unsigned long addr, size_t count) 51static inline int valid_phys_addr_range(phys_addr_t addr, size_t count)
52{ 52{
53 return addr + count <= __pa(high_memory); 53 return addr + count <= __pa(high_memory);
54} 54}
@@ -96,7 +96,7 @@ void __weak unxlate_dev_mem_ptr(unsigned long phys, void *addr)
96static ssize_t read_mem(struct file *file, char __user *buf, 96static ssize_t read_mem(struct file *file, char __user *buf,
97 size_t count, loff_t *ppos) 97 size_t count, loff_t *ppos)
98{ 98{
99 unsigned long p = *ppos; 99 phys_addr_t p = *ppos;
100 ssize_t read, sz; 100 ssize_t read, sz;
101 char *ptr; 101 char *ptr;
102 102
@@ -153,7 +153,7 @@ static ssize_t read_mem(struct file *file, char __user *buf,
153static ssize_t write_mem(struct file *file, const char __user *buf, 153static ssize_t write_mem(struct file *file, const char __user *buf,
154 size_t count, loff_t *ppos) 154 size_t count, loff_t *ppos)
155{ 155{
156 unsigned long p = *ppos; 156 phys_addr_t p = *ppos;
157 ssize_t written, sz; 157 ssize_t written, sz;
158 unsigned long copied; 158 unsigned long copied;
159 void *ptr; 159 void *ptr;
@@ -226,7 +226,7 @@ int __weak phys_mem_access_prot_allowed(struct file *file,
226 * 226 *
227 */ 227 */
228#ifdef pgprot_noncached 228#ifdef pgprot_noncached
229static int uncached_access(struct file *file, unsigned long addr) 229static int uncached_access(struct file *file, phys_addr_t addr)
230{ 230{
231#if defined(CONFIG_IA64) 231#if defined(CONFIG_IA64)
232 /* 232 /*
@@ -258,7 +258,7 @@ static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
258 unsigned long size, pgprot_t vma_prot) 258 unsigned long size, pgprot_t vma_prot)
259{ 259{
260#ifdef pgprot_noncached 260#ifdef pgprot_noncached
261 unsigned long offset = pfn << PAGE_SHIFT; 261 phys_addr_t offset = pfn << PAGE_SHIFT;
262 262
263 if (uncached_access(file, offset)) 263 if (uncached_access(file, offset))
264 return pgprot_noncached(vma_prot); 264 return pgprot_noncached(vma_prot);
diff --git a/drivers/char/pc8736x_gpio.c b/drivers/char/pc8736x_gpio.c
index b304ec052501..3f79a9fb6b1b 100644
--- a/drivers/char/pc8736x_gpio.c
+++ b/drivers/char/pc8736x_gpio.c
@@ -345,8 +345,7 @@ static void __exit pc8736x_gpio_cleanup(void)
345 unregister_chrdev_region(MKDEV(major,0), PC8736X_GPIO_CT); 345 unregister_chrdev_region(MKDEV(major,0), PC8736X_GPIO_CT);
346 release_region(pc8736x_gpio_base, PC8736X_GPIO_RANGE); 346 release_region(pc8736x_gpio_base, PC8736X_GPIO_RANGE);
347 347
348 platform_device_del(pdev); 348 platform_device_unregister(pdev);
349 platform_device_put(pdev);
350} 349}
351 350
352module_init(pc8736x_gpio_init); 351module_init(pc8736x_gpio_init);
diff --git a/drivers/char/ps3flash.c b/drivers/char/ps3flash.c
index 6abdde4da2b7..588063ac9517 100644
--- a/drivers/char/ps3flash.c
+++ b/drivers/char/ps3flash.c
@@ -363,7 +363,7 @@ static struct miscdevice ps3flash_misc = {
363 .fops = &ps3flash_fops, 363 .fops = &ps3flash_fops,
364}; 364};
365 365
366static int __devinit ps3flash_probe(struct ps3_system_bus_device *_dev) 366static int ps3flash_probe(struct ps3_system_bus_device *_dev)
367{ 367{
368 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); 368 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
369 struct ps3flash_private *priv; 369 struct ps3flash_private *priv;
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index 9b4f0116ff21..d780295a1473 100644
--- a/drivers/char/sonypi.c
+++ b/drivers/char/sonypi.c
@@ -1164,7 +1164,7 @@ static struct acpi_driver sonypi_acpi_driver = {
1164}; 1164};
1165#endif 1165#endif
1166 1166
1167static int __devinit sonypi_create_input_devices(struct platform_device *pdev) 1167static int sonypi_create_input_devices(struct platform_device *pdev)
1168{ 1168{
1169 struct input_dev *jog_dev; 1169 struct input_dev *jog_dev;
1170 struct input_dev *key_dev; 1170 struct input_dev *key_dev;
@@ -1225,7 +1225,7 @@ static int __devinit sonypi_create_input_devices(struct platform_device *pdev)
1225 return error; 1225 return error;
1226} 1226}
1227 1227
1228static int __devinit sonypi_setup_ioports(struct sonypi_device *dev, 1228static int sonypi_setup_ioports(struct sonypi_device *dev,
1229 const struct sonypi_ioport_list *ioport_list) 1229 const struct sonypi_ioport_list *ioport_list)
1230{ 1230{
1231 /* try to detect if sony-laptop is being used and thus 1231 /* try to detect if sony-laptop is being used and thus
@@ -1265,7 +1265,7 @@ static int __devinit sonypi_setup_ioports(struct sonypi_device *dev,
1265 return -EBUSY; 1265 return -EBUSY;
1266} 1266}
1267 1267
1268static int __devinit sonypi_setup_irq(struct sonypi_device *dev, 1268static int sonypi_setup_irq(struct sonypi_device *dev,
1269 const struct sonypi_irq_list *irq_list) 1269 const struct sonypi_irq_list *irq_list)
1270{ 1270{
1271 while (irq_list->irq) { 1271 while (irq_list->irq) {
@@ -1282,7 +1282,7 @@ static int __devinit sonypi_setup_irq(struct sonypi_device *dev,
1282 return -EBUSY; 1282 return -EBUSY;
1283} 1283}
1284 1284
1285static void __devinit sonypi_display_info(void) 1285static void sonypi_display_info(void)
1286{ 1286{
1287 printk(KERN_INFO "sonypi: detected type%d model, " 1287 printk(KERN_INFO "sonypi: detected type%d model, "
1288 "verbose = %d, fnkeyinit = %s, camera = %s, " 1288 "verbose = %d, fnkeyinit = %s, camera = %s, "
@@ -1304,7 +1304,7 @@ static void __devinit sonypi_display_info(void)
1304 sonypi_misc_device.minor); 1304 sonypi_misc_device.minor);
1305} 1305}
1306 1306
1307static int __devinit sonypi_probe(struct platform_device *dev) 1307static int sonypi_probe(struct platform_device *dev)
1308{ 1308{
1309 const struct sonypi_ioport_list *ioport_list; 1309 const struct sonypi_ioport_list *ioport_list;
1310 const struct sonypi_irq_list *irq_list; 1310 const struct sonypi_irq_list *irq_list;
@@ -1428,7 +1428,7 @@ static int __devinit sonypi_probe(struct platform_device *dev)
1428 return error; 1428 return error;
1429} 1429}
1430 1430
1431static int __devexit sonypi_remove(struct platform_device *dev) 1431static int sonypi_remove(struct platform_device *dev)
1432{ 1432{
1433 sonypi_disable(); 1433 sonypi_disable();
1434 1434
@@ -1491,7 +1491,7 @@ static struct platform_driver sonypi_driver = {
1491 .pm = SONYPI_PM, 1491 .pm = SONYPI_PM,
1492 }, 1492 },
1493 .probe = sonypi_probe, 1493 .probe = sonypi_probe,
1494 .remove = __devexit_p(sonypi_remove), 1494 .remove = sonypi_remove,
1495 .shutdown = sonypi_shutdown, 1495 .shutdown = sonypi_shutdown,
1496}; 1496};
1497 1497
diff --git a/drivers/char/tb0219.c b/drivers/char/tb0219.c
index ad264185eb10..34c63f85104d 100644
--- a/drivers/char/tb0219.c
+++ b/drivers/char/tb0219.c
@@ -284,7 +284,7 @@ static void tb0219_pci_irq_init(void)
284 vr41xx_set_irq_level(TB0219_PCI_SLOT3_PIN, IRQ_LEVEL_LOW); 284 vr41xx_set_irq_level(TB0219_PCI_SLOT3_PIN, IRQ_LEVEL_LOW);
285} 285}
286 286
287static int __devinit tb0219_probe(struct platform_device *dev) 287static int tb0219_probe(struct platform_device *dev)
288{ 288{
289 int retval; 289 int retval;
290 290
@@ -318,7 +318,7 @@ static int __devinit tb0219_probe(struct platform_device *dev)
318 return 0; 318 return 0;
319} 319}
320 320
321static int __devexit tb0219_remove(struct platform_device *dev) 321static int tb0219_remove(struct platform_device *dev)
322{ 322{
323 _machine_restart = old_machine_restart; 323 _machine_restart = old_machine_restart;
324 324
@@ -334,7 +334,7 @@ static struct platform_device *tb0219_platform_device;
334 334
335static struct platform_driver tb0219_device_driver = { 335static struct platform_driver tb0219_device_driver = {
336 .probe = tb0219_probe, 336 .probe = tb0219_probe,
337 .remove = __devexit_p(tb0219_remove), 337 .remove = tb0219_remove,
338 .driver = { 338 .driver = {
339 .name = "TB0219", 339 .name = "TB0219",
340 .owner = THIS_MODULE, 340 .owner = THIS_MODULE,
diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c
index bcdb078c1b84..fb447bd0cb61 100644
--- a/drivers/char/tpm/tpm_i2c_infineon.c
+++ b/drivers/char/tpm/tpm_i2c_infineon.c
@@ -656,7 +656,7 @@ static int tpm_tis_i2c_probe(struct i2c_client *client,
656 return rc; 656 return rc;
657} 657}
658 658
659static int __devexit tpm_tis_i2c_remove(struct i2c_client *client) 659static int tpm_tis_i2c_remove(struct i2c_client *client)
660{ 660{
661 struct tpm_chip *chip = tpm_dev.chip; 661 struct tpm_chip *chip = tpm_dev.chip;
662 release_locality(chip, chip->vendor.locality, 1); 662 release_locality(chip, chip->vendor.locality, 1);
diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c
index d9ba6157da96..7da840d487d2 100644
--- a/drivers/char/tpm/tpm_ibmvtpm.c
+++ b/drivers/char/tpm/tpm_ibmvtpm.c
@@ -32,7 +32,7 @@
32 32
33static const char tpm_ibmvtpm_driver_name[] = "tpm_ibmvtpm"; 33static const char tpm_ibmvtpm_driver_name[] = "tpm_ibmvtpm";
34 34
35static struct vio_device_id tpm_ibmvtpm_device_table[] __devinitdata = { 35static struct vio_device_id tpm_ibmvtpm_device_table[] = {
36 { "IBM,vtpm", "IBM,vtpm"}, 36 { "IBM,vtpm", "IBM,vtpm"},
37 { "", "" } 37 { "", "" }
38}; 38};
@@ -267,7 +267,7 @@ static int ibmvtpm_crq_send_init(struct ibmvtpm_dev *ibmvtpm)
267 * Return value: 267 * Return value:
268 * 0 268 * 0
269 */ 269 */
270static int __devexit tpm_ibmvtpm_remove(struct vio_dev *vdev) 270static int tpm_ibmvtpm_remove(struct vio_dev *vdev)
271{ 271{
272 struct ibmvtpm_dev *ibmvtpm = ibmvtpm_get_data(&vdev->dev); 272 struct ibmvtpm_dev *ibmvtpm = ibmvtpm_get_data(&vdev->dev);
273 int rc = 0; 273 int rc = 0;
diff --git a/drivers/char/tpm/tpm_infineon.c b/drivers/char/tpm/tpm_infineon.c
index 0126e8098672..2b480c2960bb 100644
--- a/drivers/char/tpm/tpm_infineon.c
+++ b/drivers/char/tpm/tpm_infineon.c
@@ -594,7 +594,7 @@ err_last:
594 return rc; 594 return rc;
595} 595}
596 596
597static __devexit void tpm_inf_pnp_remove(struct pnp_dev *dev) 597static void tpm_inf_pnp_remove(struct pnp_dev *dev)
598{ 598{
599 struct tpm_chip *chip = pnp_get_drvdata(dev); 599 struct tpm_chip *chip = pnp_get_drvdata(dev);
600 600
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 253161c302b9..ea31dafbcac2 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -769,7 +769,7 @@ static int tpm_tis_pnp_resume(struct pnp_dev *dev)
769 return ret; 769 return ret;
770} 770}
771 771
772static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = { 772static struct pnp_device_id tpm_pnp_tbl[] = {
773 {"PNP0C31", 0}, /* TPM */ 773 {"PNP0C31", 0}, /* TPM */
774 {"ATM1200", 0}, /* Atmel */ 774 {"ATM1200", 0}, /* Atmel */
775 {"IFX0102", 0}, /* Infineon */ 775 {"IFX0102", 0}, /* Infineon */
@@ -783,7 +783,7 @@ static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {
783}; 783};
784MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl); 784MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl);
785 785
786static __devexit void tpm_tis_pnp_remove(struct pnp_dev *dev) 786static void tpm_tis_pnp_remove(struct pnp_dev *dev)
787{ 787{
788 struct tpm_chip *chip = pnp_get_drvdata(dev); 788 struct tpm_chip *chip = pnp_get_drvdata(dev);
789 789
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 8ab9c3d4bf13..90493d4ead1f 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1846,7 +1846,7 @@ static void remove_controlq_data(struct ports_device *portdev)
1846 * config space to see how many ports the host has spawned. We 1846 * config space to see how many ports the host has spawned. We
1847 * initialize each port found. 1847 * initialize each port found.
1848 */ 1848 */
1849static int __devinit virtcons_probe(struct virtio_device *vdev) 1849static int virtcons_probe(struct virtio_device *vdev)
1850{ 1850{
1851 struct ports_device *portdev; 1851 struct ports_device *portdev;
1852 int err; 1852 int err;
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
index 2c5d15beea35..5224da5202d3 100644
--- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c
+++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
@@ -595,7 +595,7 @@ static const struct file_operations hwicap_fops = {
595 .llseek = noop_llseek, 595 .llseek = noop_llseek,
596}; 596};
597 597
598static int __devinit hwicap_setup(struct device *dev, int id, 598static int hwicap_setup(struct device *dev, int id,
599 const struct resource *regs_res, 599 const struct resource *regs_res,
600 const struct hwicap_driver_config *config, 600 const struct hwicap_driver_config *config,
601 const struct config_registers *config_regs) 601 const struct config_registers *config_regs)
@@ -717,7 +717,7 @@ static struct hwicap_driver_config fifo_icap_config = {
717 .reset = fifo_icap_reset, 717 .reset = fifo_icap_reset,
718}; 718};
719 719
720static int __devexit hwicap_remove(struct device *dev) 720static int hwicap_remove(struct device *dev)
721{ 721{
722 struct hwicap_drvdata *drvdata; 722 struct hwicap_drvdata *drvdata;
723 723
@@ -740,7 +740,7 @@ static int __devexit hwicap_remove(struct device *dev)
740} 740}
741 741
742#ifdef CONFIG_OF 742#ifdef CONFIG_OF
743static int __devinit hwicap_of_probe(struct platform_device *op, 743static int hwicap_of_probe(struct platform_device *op,
744 const struct hwicap_driver_config *config) 744 const struct hwicap_driver_config *config)
745{ 745{
746 struct resource res; 746 struct resource res;
@@ -785,8 +785,8 @@ static inline int hwicap_of_probe(struct platform_device *op,
785} 785}
786#endif /* CONFIG_OF */ 786#endif /* CONFIG_OF */
787 787
788static const struct of_device_id __devinitconst hwicap_of_match[]; 788static const struct of_device_id hwicap_of_match[];
789static int __devinit hwicap_drv_probe(struct platform_device *pdev) 789static int hwicap_drv_probe(struct platform_device *pdev)
790{ 790{
791 const struct of_device_id *match; 791 const struct of_device_id *match;
792 struct resource *res; 792 struct resource *res;
@@ -822,14 +822,14 @@ static int __devinit hwicap_drv_probe(struct platform_device *pdev)
822 &buffer_icap_config, regs); 822 &buffer_icap_config, regs);
823} 823}
824 824
825static int __devexit hwicap_drv_remove(struct platform_device *pdev) 825static int hwicap_drv_remove(struct platform_device *pdev)
826{ 826{
827 return hwicap_remove(&pdev->dev); 827 return hwicap_remove(&pdev->dev);
828} 828}
829 829
830#ifdef CONFIG_OF 830#ifdef CONFIG_OF
831/* Match table for device tree binding */ 831/* Match table for device tree binding */
832static const struct of_device_id __devinitconst hwicap_of_match[] = { 832static const struct of_device_id hwicap_of_match[] = {
833 { .compatible = "xlnx,opb-hwicap-1.00.b", .data = &buffer_icap_config}, 833 { .compatible = "xlnx,opb-hwicap-1.00.b", .data = &buffer_icap_config},
834 { .compatible = "xlnx,xps-hwicap-1.00.a", .data = &fifo_icap_config}, 834 { .compatible = "xlnx,xps-hwicap-1.00.a", .data = &fifo_icap_config},
835 {}, 835 {},