diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:09:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:15 -0500 |
commit | 4bf27b8b333bcd291664fd0f7d129099d474a23b (patch) | |
tree | 2037b00003c0cd8b6b1322bc37704c4c58f868a9 /drivers/dma | |
parent | 56550d94cbaeaa195cb98c95d012b301cbd65a8d (diff) |
Drivers: dma: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitconst,
and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Dan Williams <djbw@fb.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Barry Song <baohua.song@csr.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/dw_dmac.c | 2 | ||||
-rw-r--r-- | drivers/dma/edma.c | 2 | ||||
-rw-r--r-- | drivers/dma/intel_mid_dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/ioat/dca.c | 9 | ||||
-rw-r--r-- | drivers/dma/ioat/dma.c | 12 | ||||
-rw-r--r-- | drivers/dma/ioat/dma.h | 13 | ||||
-rw-r--r-- | drivers/dma/ioat/dma_v2.c | 2 | ||||
-rw-r--r-- | drivers/dma/ioat/dma_v2.h | 8 | ||||
-rw-r--r-- | drivers/dma/ioat/dma_v3.c | 8 | ||||
-rw-r--r-- | drivers/dma/ioat/pci.c | 9 | ||||
-rw-r--r-- | drivers/dma/iop-adma.c | 2 | ||||
-rw-r--r-- | drivers/dma/mmp_pdma.c | 2 | ||||
-rw-r--r-- | drivers/dma/mmp_tdma.c | 2 | ||||
-rw-r--r-- | drivers/dma/mpc512x_dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/pch_dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/pl330.c | 2 | ||||
-rw-r--r-- | drivers/dma/ppc4xx/adma.c | 4 | ||||
-rw-r--r-- | drivers/dma/sa11x0-dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/sh/shdma.c | 2 | ||||
-rw-r--r-- | drivers/dma/sirf-dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 6 | ||||
-rw-r--r-- | drivers/dma/timb_dma.c | 2 |
22 files changed, 46 insertions, 51 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 8f0b111af4de..3e8ba02ba292 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c | |||
@@ -1634,7 +1634,7 @@ static int dw_probe(struct platform_device *pdev) | |||
1634 | return 0; | 1634 | return 0; |
1635 | } | 1635 | } |
1636 | 1636 | ||
1637 | static int __devexit dw_remove(struct platform_device *pdev) | 1637 | static int dw_remove(struct platform_device *pdev) |
1638 | { | 1638 | { |
1639 | struct dw_dma *dw = platform_get_drvdata(pdev); | 1639 | struct dw_dma *dw = platform_get_drvdata(pdev); |
1640 | struct dw_dma_chan *dwc, *_dwc; | 1640 | struct dw_dma_chan *dwc, *_dwc; |
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 232b4583ae93..f424298f1ac5 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c | |||
@@ -585,7 +585,7 @@ err_reg1: | |||
585 | return ret; | 585 | return ret; |
586 | } | 586 | } |
587 | 587 | ||
588 | static int __devexit edma_remove(struct platform_device *pdev) | 588 | static int edma_remove(struct platform_device *pdev) |
589 | { | 589 | { |
590 | struct device *dev = &pdev->dev; | 590 | struct device *dev = &pdev->dev; |
591 | struct edma_cc *ecc = dev_get_drvdata(dev); | 591 | struct edma_cc *ecc = dev_get_drvdata(dev); |
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c index bc764afacd9b..a0de82e21a7c 100644 --- a/drivers/dma/intel_mid_dma.c +++ b/drivers/dma/intel_mid_dma.c | |||
@@ -1308,7 +1308,7 @@ err_enable_device: | |||
1308 | * Free up all resources and data | 1308 | * Free up all resources and data |
1309 | * Call shutdown_dma to complete contoller and chan cleanup | 1309 | * Call shutdown_dma to complete contoller and chan cleanup |
1310 | */ | 1310 | */ |
1311 | static void __devexit intel_mid_dma_remove(struct pci_dev *pdev) | 1311 | static void intel_mid_dma_remove(struct pci_dev *pdev) |
1312 | { | 1312 | { |
1313 | struct middma_device *device = pci_get_drvdata(pdev); | 1313 | struct middma_device *device = pci_get_drvdata(pdev); |
1314 | 1314 | ||
diff --git a/drivers/dma/ioat/dca.c b/drivers/dma/ioat/dca.c index d6668071bd0d..9b041858d10d 100644 --- a/drivers/dma/ioat/dca.c +++ b/drivers/dma/ioat/dca.c | |||
@@ -242,8 +242,7 @@ static struct dca_ops ioat_dca_ops = { | |||
242 | }; | 242 | }; |
243 | 243 | ||
244 | 244 | ||
245 | struct dca_provider * __devinit | 245 | struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase) |
246 | ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase) | ||
247 | { | 246 | { |
248 | struct dca_provider *dca; | 247 | struct dca_provider *dca; |
249 | struct ioat_dca_priv *ioatdca; | 248 | struct ioat_dca_priv *ioatdca; |
@@ -408,8 +407,7 @@ static int ioat2_dca_count_dca_slots(void __iomem *iobase, u16 dca_offset) | |||
408 | return slots; | 407 | return slots; |
409 | } | 408 | } |
410 | 409 | ||
411 | struct dca_provider * __devinit | 410 | struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase) |
412 | ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase) | ||
413 | { | 411 | { |
414 | struct dca_provider *dca; | 412 | struct dca_provider *dca; |
415 | struct ioat_dca_priv *ioatdca; | 413 | struct ioat_dca_priv *ioatdca; |
@@ -621,8 +619,7 @@ static inline int dca3_tag_map_invalid(u8 *tag_map) | |||
621 | (tag_map[4] == DCA_TAG_MAP_VALID)); | 619 | (tag_map[4] == DCA_TAG_MAP_VALID)); |
622 | } | 620 | } |
623 | 621 | ||
624 | struct dca_provider * __devinit | 622 | struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase) |
625 | ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase) | ||
626 | { | 623 | { |
627 | struct dca_provider *dca; | 624 | struct dca_provider *dca; |
628 | struct ioat_dca_priv *ioatdca; | 625 | struct ioat_dca_priv *ioatdca; |
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index 73b2b65cb1de..1a68a8ba87e6 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c | |||
@@ -782,7 +782,7 @@ static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat) | |||
782 | */ | 782 | */ |
783 | #define IOAT_TEST_SIZE 2000 | 783 | #define IOAT_TEST_SIZE 2000 |
784 | 784 | ||
785 | static void __devinit ioat_dma_test_callback(void *dma_async_param) | 785 | static void ioat_dma_test_callback(void *dma_async_param) |
786 | { | 786 | { |
787 | struct completion *cmp = dma_async_param; | 787 | struct completion *cmp = dma_async_param; |
788 | 788 | ||
@@ -793,7 +793,7 @@ static void __devinit ioat_dma_test_callback(void *dma_async_param) | |||
793 | * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works. | 793 | * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works. |
794 | * @device: device to be tested | 794 | * @device: device to be tested |
795 | */ | 795 | */ |
796 | int __devinit ioat_dma_self_test(struct ioatdma_device *device) | 796 | int ioat_dma_self_test(struct ioatdma_device *device) |
797 | { | 797 | { |
798 | int i; | 798 | int i; |
799 | u8 *src; | 799 | u8 *src; |
@@ -994,7 +994,7 @@ static void ioat_disable_interrupts(struct ioatdma_device *device) | |||
994 | writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET); | 994 | writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET); |
995 | } | 995 | } |
996 | 996 | ||
997 | int __devinit ioat_probe(struct ioatdma_device *device) | 997 | int ioat_probe(struct ioatdma_device *device) |
998 | { | 998 | { |
999 | int err = -ENODEV; | 999 | int err = -ENODEV; |
1000 | struct dma_device *dma = &device->common; | 1000 | struct dma_device *dma = &device->common; |
@@ -1049,7 +1049,7 @@ err_dma_pool: | |||
1049 | return err; | 1049 | return err; |
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | int __devinit ioat_register(struct ioatdma_device *device) | 1052 | int ioat_register(struct ioatdma_device *device) |
1053 | { | 1053 | { |
1054 | int err = dma_async_device_register(&device->common); | 1054 | int err = dma_async_device_register(&device->common); |
1055 | 1055 | ||
@@ -1183,7 +1183,7 @@ void ioat_kobject_del(struct ioatdma_device *device) | |||
1183 | } | 1183 | } |
1184 | } | 1184 | } |
1185 | 1185 | ||
1186 | int __devinit ioat1_dma_probe(struct ioatdma_device *device, int dca) | 1186 | int ioat1_dma_probe(struct ioatdma_device *device, int dca) |
1187 | { | 1187 | { |
1188 | struct pci_dev *pdev = device->pdev; | 1188 | struct pci_dev *pdev = device->pdev; |
1189 | struct dma_device *dma; | 1189 | struct dma_device *dma; |
@@ -1216,7 +1216,7 @@ int __devinit ioat1_dma_probe(struct ioatdma_device *device, int dca) | |||
1216 | return err; | 1216 | return err; |
1217 | } | 1217 | } |
1218 | 1218 | ||
1219 | void __devexit ioat_dma_remove(struct ioatdma_device *device) | 1219 | void ioat_dma_remove(struct ioatdma_device *device) |
1220 | { | 1220 | { |
1221 | struct dma_device *dma = &device->common; | 1221 | struct dma_device *dma = &device->common; |
1222 | 1222 | ||
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h index 5e8fe01ba69d..087935f1565f 100644 --- a/drivers/dma/ioat/dma.h +++ b/drivers/dma/ioat/dma.h | |||
@@ -303,13 +303,12 @@ static inline void ioat_unmap(struct pci_dev *pdev, dma_addr_t addr, size_t len, | |||
303 | pci_unmap_page(pdev, addr, len, direction); | 303 | pci_unmap_page(pdev, addr, len, direction); |
304 | } | 304 | } |
305 | 305 | ||
306 | int __devinit ioat_probe(struct ioatdma_device *device); | 306 | int ioat_probe(struct ioatdma_device *device); |
307 | int __devinit ioat_register(struct ioatdma_device *device); | 307 | int ioat_register(struct ioatdma_device *device); |
308 | int __devinit ioat1_dma_probe(struct ioatdma_device *dev, int dca); | 308 | int ioat1_dma_probe(struct ioatdma_device *dev, int dca); |
309 | int __devinit ioat_dma_self_test(struct ioatdma_device *device); | 309 | int ioat_dma_self_test(struct ioatdma_device *device); |
310 | void __devexit ioat_dma_remove(struct ioatdma_device *device); | 310 | void ioat_dma_remove(struct ioatdma_device *device); |
311 | struct dca_provider * __devinit ioat_dca_init(struct pci_dev *pdev, | 311 | struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase); |
312 | void __iomem *iobase); | ||
313 | dma_addr_t ioat_get_current_completion(struct ioat_chan_common *chan); | 312 | dma_addr_t ioat_get_current_completion(struct ioat_chan_common *chan); |
314 | void ioat_init_channel(struct ioatdma_device *device, | 313 | void ioat_init_channel(struct ioatdma_device *device, |
315 | struct ioat_chan_common *chan, int idx); | 314 | struct ioat_chan_common *chan, int idx); |
diff --git a/drivers/dma/ioat/dma_v2.c b/drivers/dma/ioat/dma_v2.c index b9d667851445..82d4e306c32e 100644 --- a/drivers/dma/ioat/dma_v2.c +++ b/drivers/dma/ioat/dma_v2.c | |||
@@ -862,7 +862,7 @@ struct kobj_type ioat2_ktype = { | |||
862 | .default_attrs = ioat2_attrs, | 862 | .default_attrs = ioat2_attrs, |
863 | }; | 863 | }; |
864 | 864 | ||
865 | int __devinit ioat2_dma_probe(struct ioatdma_device *device, int dca) | 865 | int ioat2_dma_probe(struct ioatdma_device *device, int dca) |
866 | { | 866 | { |
867 | struct pci_dev *pdev = device->pdev; | 867 | struct pci_dev *pdev = device->pdev; |
868 | struct dma_device *dma; | 868 | struct dma_device *dma; |
diff --git a/drivers/dma/ioat/dma_v2.h b/drivers/dma/ioat/dma_v2.h index be2a55b95c23..e100f644e344 100644 --- a/drivers/dma/ioat/dma_v2.h +++ b/drivers/dma/ioat/dma_v2.h | |||
@@ -155,10 +155,10 @@ static inline void ioat2_set_chainaddr(struct ioat2_dma_chan *ioat, u64 addr) | |||
155 | chan->reg_base + IOAT2_CHAINADDR_OFFSET_HIGH); | 155 | chan->reg_base + IOAT2_CHAINADDR_OFFSET_HIGH); |
156 | } | 156 | } |
157 | 157 | ||
158 | int __devinit ioat2_dma_probe(struct ioatdma_device *dev, int dca); | 158 | int ioat2_dma_probe(struct ioatdma_device *dev, int dca); |
159 | int __devinit ioat3_dma_probe(struct ioatdma_device *dev, int dca); | 159 | int ioat3_dma_probe(struct ioatdma_device *dev, int dca); |
160 | struct dca_provider * __devinit ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase); | 160 | struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase); |
161 | struct dca_provider * __devinit ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase); | 161 | struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase); |
162 | int ioat2_check_space_lock(struct ioat2_dma_chan *ioat, int num_descs); | 162 | int ioat2_check_space_lock(struct ioat2_dma_chan *ioat, int num_descs); |
163 | int ioat2_enumerate_channels(struct ioatdma_device *device); | 163 | int ioat2_enumerate_channels(struct ioatdma_device *device); |
164 | struct dma_async_tx_descriptor * | 164 | struct dma_async_tx_descriptor * |
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c index f7f1dc62c15c..e5fc944de1f0 100644 --- a/drivers/dma/ioat/dma_v3.c +++ b/drivers/dma/ioat/dma_v3.c | |||
@@ -836,7 +836,7 @@ ioat3_prep_interrupt_lock(struct dma_chan *c, unsigned long flags) | |||
836 | return &desc->txd; | 836 | return &desc->txd; |
837 | } | 837 | } |
838 | 838 | ||
839 | static void __devinit ioat3_dma_test_callback(void *dma_async_param) | 839 | static void ioat3_dma_test_callback(void *dma_async_param) |
840 | { | 840 | { |
841 | struct completion *cmp = dma_async_param; | 841 | struct completion *cmp = dma_async_param; |
842 | 842 | ||
@@ -844,7 +844,7 @@ static void __devinit ioat3_dma_test_callback(void *dma_async_param) | |||
844 | } | 844 | } |
845 | 845 | ||
846 | #define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */ | 846 | #define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */ |
847 | static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device) | 847 | static int ioat_xor_val_self_test(struct ioatdma_device *device) |
848 | { | 848 | { |
849 | int i, src_idx; | 849 | int i, src_idx; |
850 | struct page *dest; | 850 | struct page *dest; |
@@ -1096,7 +1096,7 @@ out: | |||
1096 | return err; | 1096 | return err; |
1097 | } | 1097 | } |
1098 | 1098 | ||
1099 | static int __devinit ioat3_dma_self_test(struct ioatdma_device *device) | 1099 | static int ioat3_dma_self_test(struct ioatdma_device *device) |
1100 | { | 1100 | { |
1101 | int rc = ioat_dma_self_test(device); | 1101 | int rc = ioat_dma_self_test(device); |
1102 | 1102 | ||
@@ -1187,7 +1187,7 @@ static bool is_snb_ioat(struct pci_dev *pdev) | |||
1187 | } | 1187 | } |
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca) | 1190 | int ioat3_dma_probe(struct ioatdma_device *device, int dca) |
1191 | { | 1191 | { |
1192 | struct pci_dev *pdev = device->pdev; | 1192 | struct pci_dev *pdev = device->pdev; |
1193 | int dca_en = system_has_dca_enabled(pdev); | 1193 | int dca_en = system_has_dca_enabled(pdev); |
diff --git a/drivers/dma/ioat/pci.c b/drivers/dma/ioat/pci.c index bfa9a3536e09..4f686c527ab6 100644 --- a/drivers/dma/ioat/pci.c +++ b/drivers/dma/ioat/pci.c | |||
@@ -109,9 +109,8 @@ static struct pci_device_id ioat_pci_tbl[] = { | |||
109 | }; | 109 | }; |
110 | MODULE_DEVICE_TABLE(pci, ioat_pci_tbl); | 110 | MODULE_DEVICE_TABLE(pci, ioat_pci_tbl); |
111 | 111 | ||
112 | static int __devinit ioat_pci_probe(struct pci_dev *pdev, | 112 | static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id); |
113 | const struct pci_device_id *id); | 113 | static void ioat_remove(struct pci_dev *pdev); |
114 | static void __devexit ioat_remove(struct pci_dev *pdev); | ||
115 | 114 | ||
116 | static int ioat_dca_enabled = 1; | 115 | static int ioat_dca_enabled = 1; |
117 | module_param(ioat_dca_enabled, int, 0644); | 116 | module_param(ioat_dca_enabled, int, 0644); |
@@ -141,7 +140,7 @@ alloc_ioatdma(struct pci_dev *pdev, void __iomem *iobase) | |||
141 | return d; | 140 | return d; |
142 | } | 141 | } |
143 | 142 | ||
144 | static int __devinit ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 143 | static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
145 | { | 144 | { |
146 | void __iomem * const *iomap; | 145 | void __iomem * const *iomap; |
147 | struct device *dev = &pdev->dev; | 146 | struct device *dev = &pdev->dev; |
@@ -195,7 +194,7 @@ static int __devinit ioat_pci_probe(struct pci_dev *pdev, const struct pci_devic | |||
195 | return 0; | 194 | return 0; |
196 | } | 195 | } |
197 | 196 | ||
198 | static void __devexit ioat_remove(struct pci_dev *pdev) | 197 | static void ioat_remove(struct pci_dev *pdev) |
199 | { | 198 | { |
200 | struct ioatdma_device *device = pci_get_drvdata(pdev); | 199 | struct ioatdma_device *device = pci_get_drvdata(pdev); |
201 | 200 | ||
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index 9072e173b860..eacb8be99812 100644 --- a/drivers/dma/iop-adma.c +++ b/drivers/dma/iop-adma.c | |||
@@ -1406,7 +1406,7 @@ out: | |||
1406 | } | 1406 | } |
1407 | #endif | 1407 | #endif |
1408 | 1408 | ||
1409 | static int __devexit iop_adma_remove(struct platform_device *dev) | 1409 | static int iop_adma_remove(struct platform_device *dev) |
1410 | { | 1410 | { |
1411 | struct iop_adma_device *device = platform_get_drvdata(dev); | 1411 | struct iop_adma_device *device = platform_get_drvdata(dev); |
1412 | struct dma_chan *chan, *_chan; | 1412 | struct dma_chan *chan, *_chan; |
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index 13bdf4a7e1ec..c6d98c00f05c 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c | |||
@@ -712,7 +712,7 @@ static void dma_do_tasklet(unsigned long data) | |||
712 | } | 712 | } |
713 | } | 713 | } |
714 | 714 | ||
715 | static int __devexit mmp_pdma_remove(struct platform_device *op) | 715 | static int mmp_pdma_remove(struct platform_device *op) |
716 | { | 716 | { |
717 | struct mmp_pdma_device *pdev = platform_get_drvdata(op); | 717 | struct mmp_pdma_device *pdev = platform_get_drvdata(op); |
718 | 718 | ||
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 323821c0c095..a9f1cd56689c 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c | |||
@@ -467,7 +467,7 @@ static void mmp_tdma_issue_pending(struct dma_chan *chan) | |||
467 | mmp_tdma_enable_chan(tdmac); | 467 | mmp_tdma_enable_chan(tdmac); |
468 | } | 468 | } |
469 | 469 | ||
470 | static int __devexit mmp_tdma_remove(struct platform_device *pdev) | 470 | static int mmp_tdma_remove(struct platform_device *pdev) |
471 | { | 471 | { |
472 | struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); | 472 | struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); |
473 | 473 | ||
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index 2cd024a91d40..2d956732aa3d 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c | |||
@@ -799,7 +799,7 @@ static int mpc_dma_probe(struct platform_device *op) | |||
799 | return retval; | 799 | return retval; |
800 | } | 800 | } |
801 | 801 | ||
802 | static int __devexit mpc_dma_remove(struct platform_device *op) | 802 | static int mpc_dma_remove(struct platform_device *op) |
803 | { | 803 | { |
804 | struct device *dev = &op->dev; | 804 | struct device *dev = &op->dev; |
805 | struct mpc_dma *mdma = dev_get_drvdata(dev); | 805 | struct mpc_dma *mdma = dev_get_drvdata(dev); |
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index eca1c4ddf039..3f2617255ef2 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -961,7 +961,7 @@ err_free_mem: | |||
961 | return err; | 961 | return err; |
962 | } | 962 | } |
963 | 963 | ||
964 | static void __devexit pch_dma_remove(struct pci_dev *pdev) | 964 | static void pch_dma_remove(struct pci_dev *pdev) |
965 | { | 965 | { |
966 | struct pch_dma *pd = pci_get_drvdata(pdev); | 966 | struct pch_dma *pd = pci_get_drvdata(pdev); |
967 | struct pch_dma_chan *pd_chan; | 967 | struct pch_dma_chan *pd_chan; |
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 95555f37ea6d..80680eee0171 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -2988,7 +2988,7 @@ probe_err1: | |||
2988 | return ret; | 2988 | return ret; |
2989 | } | 2989 | } |
2990 | 2990 | ||
2991 | static int __devexit pl330_remove(struct amba_device *adev) | 2991 | static int pl330_remove(struct amba_device *adev) |
2992 | { | 2992 | { |
2993 | struct dma_pl330_dmac *pdmac = amba_get_drvdata(adev); | 2993 | struct dma_pl330_dmac *pdmac = amba_get_drvdata(adev); |
2994 | struct dma_pl330_chan *pch, *_p; | 2994 | struct dma_pl330_chan *pch, *_p; |
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index b94afc339e7f..5d3d95569a1e 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c | |||
@@ -4592,7 +4592,7 @@ out: | |||
4592 | /** | 4592 | /** |
4593 | * ppc440spe_adma_remove - remove the asynch device | 4593 | * ppc440spe_adma_remove - remove the asynch device |
4594 | */ | 4594 | */ |
4595 | static int __devexit ppc440spe_adma_remove(struct platform_device *ofdev) | 4595 | static int ppc440spe_adma_remove(struct platform_device *ofdev) |
4596 | { | 4596 | { |
4597 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); | 4597 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); |
4598 | struct device_node *np = ofdev->dev.of_node; | 4598 | struct device_node *np = ofdev->dev.of_node; |
@@ -4905,7 +4905,7 @@ out_free: | |||
4905 | return ret; | 4905 | return ret; |
4906 | } | 4906 | } |
4907 | 4907 | ||
4908 | static const struct of_device_id ppc440spe_adma_of_match[] __devinitconst = { | 4908 | static const struct of_device_id ppc440spe_adma_of_match[] = { |
4909 | { .compatible = "ibm,dma-440spe", }, | 4909 | { .compatible = "ibm,dma-440spe", }, |
4910 | { .compatible = "amcc,xor-accelerator", }, | 4910 | { .compatible = "amcc,xor-accelerator", }, |
4911 | {}, | 4911 | {}, |
diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index 2ad628df8223..461a91ab70bb 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c | |||
@@ -967,7 +967,7 @@ static int sa11x0_dma_probe(struct platform_device *pdev) | |||
967 | return ret; | 967 | return ret; |
968 | } | 968 | } |
969 | 969 | ||
970 | static int __devexit sa11x0_dma_remove(struct platform_device *pdev) | 970 | static int sa11x0_dma_remove(struct platform_device *pdev) |
971 | { | 971 | { |
972 | struct sa11x0_dma_dev *d = platform_get_drvdata(pdev); | 972 | struct sa11x0_dma_dev *d = platform_get_drvdata(pdev); |
973 | unsigned pch; | 973 | unsigned pch; |
diff --git a/drivers/dma/sh/shdma.c b/drivers/dma/sh/shdma.c index 8201bb4e0cd7..3315e4be9b85 100644 --- a/drivers/dma/sh/shdma.c +++ b/drivers/dma/sh/shdma.c | |||
@@ -880,7 +880,7 @@ ermrdmars: | |||
880 | return err; | 880 | return err; |
881 | } | 881 | } |
882 | 882 | ||
883 | static int __devexit sh_dmae_remove(struct platform_device *pdev) | 883 | static int sh_dmae_remove(struct platform_device *pdev) |
884 | { | 884 | { |
885 | struct sh_dmae_device *shdev = platform_get_drvdata(pdev); | 885 | struct sh_dmae_device *shdev = platform_get_drvdata(pdev); |
886 | struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; | 886 | struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; |
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index c3de6edb9651..94674a96c646 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -655,7 +655,7 @@ irq_dispose: | |||
655 | return ret; | 655 | return ret; |
656 | } | 656 | } |
657 | 657 | ||
658 | static int __devexit sirfsoc_dma_remove(struct platform_device *op) | 658 | static int sirfsoc_dma_remove(struct platform_device *op) |
659 | { | 659 | { |
660 | struct device *dev = &op->dev; | 660 | struct device *dev = &op->dev; |
661 | struct sirfsoc_dma *sdma = dev_get_drvdata(dev); | 661 | struct sirfsoc_dma *sdma = dev_get_drvdata(dev); |
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index efdfffa13349..c39e61bc8172 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -1184,7 +1184,7 @@ static const struct tegra_dma_chip_data tegra30_dma_chip_data = { | |||
1184 | .max_dma_count = 1024UL * 64, | 1184 | .max_dma_count = 1024UL * 64, |
1185 | }; | 1185 | }; |
1186 | 1186 | ||
1187 | static const struct of_device_id tegra_dma_of_match[] __devinitconst = { | 1187 | static const struct of_device_id tegra_dma_of_match[] = { |
1188 | { | 1188 | { |
1189 | .compatible = "nvidia,tegra30-apbdma", | 1189 | .compatible = "nvidia,tegra30-apbdma", |
1190 | .data = &tegra30_dma_chip_data, | 1190 | .data = &tegra30_dma_chip_data, |
@@ -1360,7 +1360,7 @@ err_pm_disable: | |||
1360 | return ret; | 1360 | return ret; |
1361 | } | 1361 | } |
1362 | 1362 | ||
1363 | static int __devexit tegra_dma_remove(struct platform_device *pdev) | 1363 | static int tegra_dma_remove(struct platform_device *pdev) |
1364 | { | 1364 | { |
1365 | struct tegra_dma *tdma = platform_get_drvdata(pdev); | 1365 | struct tegra_dma *tdma = platform_get_drvdata(pdev); |
1366 | int i; | 1366 | int i; |
@@ -1403,7 +1403,7 @@ static int tegra_dma_runtime_resume(struct device *dev) | |||
1403 | return 0; | 1403 | return 0; |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | static const struct dev_pm_ops tegra_dma_dev_pm_ops __devinitconst = { | 1406 | static const struct dev_pm_ops tegra_dma_dev_pm_ops = { |
1407 | #ifdef CONFIG_PM_RUNTIME | 1407 | #ifdef CONFIG_PM_RUNTIME |
1408 | .runtime_suspend = tegra_dma_runtime_suspend, | 1408 | .runtime_suspend = tegra_dma_runtime_suspend, |
1409 | .runtime_resume = tegra_dma_runtime_resume, | 1409 | .runtime_resume = tegra_dma_runtime_resume, |
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 98cf51e1544c..952f823901a6 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -798,7 +798,7 @@ err_release_region: | |||
798 | 798 | ||
799 | } | 799 | } |
800 | 800 | ||
801 | static int __devexit td_remove(struct platform_device *pdev) | 801 | static int td_remove(struct platform_device *pdev) |
802 | { | 802 | { |
803 | struct timb_dma *td = platform_get_drvdata(pdev); | 803 | struct timb_dma *td = platform_get_drvdata(pdev); |
804 | struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 804 | struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |