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/ioat | |
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/ioat')
-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 |
7 files changed, 28 insertions, 33 deletions
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 | ||