002-remove-usage-of__dev.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --- a/mem.c
  2. +++ b/mem.c
  3. @@ -2002,7 +2002,7 @@ int acx100mem_ioctl_set_phy_amp_bias(str
  4. * configuration
  5. * id - ptr to the device id entry that matched this device
  6. */
  7. -static int __devinit acxmem_probe(struct platform_device *pdev)
  8. +static int acxmem_probe(struct platform_device *pdev)
  9. {
  10. acx_device_t *adev = NULL;
  11. const char *chip_name;
  12. @@ -2268,7 +2268,7 @@ done:
  13. * pdev - ptr to PCI device structure containing info about pci
  14. * configuration
  15. */
  16. -static int __devexit acxmem_remove(struct platform_device *pdev)
  17. +static int acxmem_remove(struct platform_device *pdev)
  18. {
  19. struct ieee80211_hw *hw = (struct ieee80211_hw *)
  20. platform_get_drvdata(pdev);
  21. @@ -2470,7 +2470,7 @@ static struct platform_driver acxmem_dri
  22. .name = "acx-mem",
  23. },
  24. .probe = acxmem_probe,
  25. - .remove = __devexit_p(acxmem_remove),
  26. + .remove = acxmem_remove,
  27. #ifdef CONFIG_PM
  28. .suspend = acxmem_e_suspend,
  29. --- a/pci.c
  30. +++ b/pci.c
  31. @@ -982,7 +982,7 @@ int acx100pci_ioctl_set_phy_amp_bias(str
  32. * id - ptr to the device id entry that matched this device
  33. */
  34. #ifdef CONFIG_PCI
  35. -static int __devinit acxpci_probe(struct pci_dev *pdev,
  36. +static int acxpci_probe(struct pci_dev *pdev,
  37. const struct pci_device_id *id)
  38. {
  39. acx111_ie_configoption_t co;
  40. @@ -1346,7 +1346,7 @@ done:
  41. *
  42. * pdev - ptr to PCI device structure containing info about pci configuration
  43. */
  44. -static void __devexit acxpci_remove(struct pci_dev *pdev)
  45. +static void acxpci_remove(struct pci_dev *pdev)
  46. {
  47. struct ieee80211_hw *hw
  48. = (struct ieee80211_hw *) pci_get_drvdata(pdev);
  49. @@ -1537,7 +1537,7 @@ static int acxpci_e_resume(struct pci_de
  50. */
  51. #if 0 // use later ?
  52. -static struct acxpci_device_info acxpci_info_tbl[] __devinitdata = {
  53. +static struct acxpci_device_info acxpci_info_tbl[] = {
  54. [0] = {
  55. .part_name = "acx111",
  56. .helper_image = "tiacx1111r16", // probly wrong !!
  57. @@ -1564,7 +1564,7 @@ static struct pci_driver acxpci_driver =
  58. .name = "acx_pci",
  59. .id_table = acxpci_id_tbl,
  60. .probe = acxpci_probe,
  61. - .remove = __devexit_p(acxpci_remove),
  62. + .remove = acxpci_remove,
  63. #ifdef CONFIG_PM
  64. .suspend = acxpci_e_suspend,
  65. .resume = acxpci_e_resume
  66. @@ -1662,7 +1662,7 @@ static struct vlynq_device_id acx_vlynq_
  67. };
  68. -static __devinit int vlynq_probe(struct vlynq_device *vdev,
  69. +static int vlynq_probe(struct vlynq_device *vdev,
  70. struct vlynq_device_id *id)
  71. {
  72. int result = -EIO, i;
  73. @@ -1971,7 +1971,7 @@ static struct vlynq_driver vlynq_acx = {
  74. .name = "acx_vlynq",
  75. .id_table = acx_vlynq_id,
  76. .probe = vlynq_probe,
  77. - .remove = __devexit_p(vlynq_remove),
  78. + .remove = vlynq_remove,
  79. };
  80. #endif /* CONFIG_VLYNQ */