aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-09-08 15:01:30 -0400
committerDan Williams <dan.j.williams@intel.com>2009-09-08 20:30:24 -0400
commit345d852391cf3fdc73f23a9ca522c6e7b5eb5a52 (patch)
treea029ab0c4e66a6ea7c7a7b76c06bcffe92fab5e8 /drivers/dma/ioat
parentf6ab95b55735fa03cad8d0f966647e5df206e207 (diff)
ioat: ___devinit annotate the initialization paths
Mark all single use initialization routines with __devinit. Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r--drivers/dma/ioat/dca.c9
-rw-r--r--drivers/dma/ioat/dma.c12
-rw-r--r--drivers/dma/ioat/dma.h11
-rw-r--r--drivers/dma/ioat/dma_v2.c4
-rw-r--r--drivers/dma/ioat/dma_v2.h8
5 files changed, 24 insertions, 20 deletions
diff --git a/drivers/dma/ioat/dca.c b/drivers/dma/ioat/dca.c
index af1c762dd9d0..69d02615c4d6 100644
--- a/drivers/dma/ioat/dca.c
+++ b/drivers/dma/ioat/dca.c
@@ -242,7 +242,8 @@ static struct dca_ops ioat_dca_ops = {
242}; 242};
243 243
244 244
245struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase) 245struct dca_provider * __devinit
246ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase)
246{ 247{
247 struct dca_provider *dca; 248 struct dca_provider *dca;
248 struct ioat_dca_priv *ioatdca; 249 struct ioat_dca_priv *ioatdca;
@@ -407,7 +408,8 @@ static int ioat2_dca_count_dca_slots(void __iomem *iobase, u16 dca_offset)
407 return slots; 408 return slots;
408} 409}
409 410
410struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase) 411struct dca_provider * __devinit
412ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase)
411{ 413{
412 struct dca_provider *dca; 414 struct dca_provider *dca;
413 struct ioat_dca_priv *ioatdca; 415 struct ioat_dca_priv *ioatdca;
@@ -602,7 +604,8 @@ static int ioat3_dca_count_dca_slots(void *iobase, u16 dca_offset)
602 return slots; 604 return slots;
603} 605}
604 606
605struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase) 607struct dca_provider * __devinit
608ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase)
606{ 609{
607 struct dca_provider *dca; 610 struct dca_provider *dca;
608 struct ioat_dca_priv *ioatdca; 611 struct ioat_dca_priv *ioatdca;
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index 6dd0af194b8a..abc96c4c0796 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -870,7 +870,7 @@ static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat)
870 */ 870 */
871#define IOAT_TEST_SIZE 2000 871#define IOAT_TEST_SIZE 2000
872 872
873static void ioat_dma_test_callback(void *dma_async_param) 873static void __devinit ioat_dma_test_callback(void *dma_async_param)
874{ 874{
875 struct completion *cmp = dma_async_param; 875 struct completion *cmp = dma_async_param;
876 876
@@ -881,7 +881,7 @@ static void ioat_dma_test_callback(void *dma_async_param)
881 * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works. 881 * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works.
882 * @device: device to be tested 882 * @device: device to be tested
883 */ 883 */
884static int ioat_dma_self_test(struct ioatdma_device *device) 884static int __devinit ioat_dma_self_test(struct ioatdma_device *device)
885{ 885{
886 int i; 886 int i;
887 u8 *src; 887 u8 *src;
@@ -1082,7 +1082,7 @@ static void ioat_disable_interrupts(struct ioatdma_device *device)
1082 writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET); 1082 writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET);
1083} 1083}
1084 1084
1085int ioat_probe(struct ioatdma_device *device) 1085int __devinit ioat_probe(struct ioatdma_device *device)
1086{ 1086{
1087 int err = -ENODEV; 1087 int err = -ENODEV;
1088 struct dma_device *dma = &device->common; 1088 struct dma_device *dma = &device->common;
@@ -1142,7 +1142,7 @@ err_dma_pool:
1142 return err; 1142 return err;
1143} 1143}
1144 1144
1145int ioat_register(struct ioatdma_device *device) 1145int __devinit ioat_register(struct ioatdma_device *device)
1146{ 1146{
1147 int err = dma_async_device_register(&device->common); 1147 int err = dma_async_device_register(&device->common);
1148 1148
@@ -1169,7 +1169,7 @@ static void ioat1_intr_quirk(struct ioatdma_device *device)
1169 pci_write_config_dword(pdev, IOAT_PCI_DMACTRL_OFFSET, dmactrl); 1169 pci_write_config_dword(pdev, IOAT_PCI_DMACTRL_OFFSET, dmactrl);
1170} 1170}
1171 1171
1172int ioat1_dma_probe(struct ioatdma_device *device, int dca) 1172int __devinit ioat1_dma_probe(struct ioatdma_device *device, int dca)
1173{ 1173{
1174 struct pci_dev *pdev = device->pdev; 1174 struct pci_dev *pdev = device->pdev;
1175 struct dma_device *dma; 1175 struct dma_device *dma;
@@ -1200,7 +1200,7 @@ int ioat1_dma_probe(struct ioatdma_device *device, int dca)
1200 return err; 1200 return err;
1201} 1201}
1202 1202
1203void ioat_dma_remove(struct ioatdma_device *device) 1203void __devexit ioat_dma_remove(struct ioatdma_device *device)
1204{ 1204{
1205 struct dma_device *dma = &device->common; 1205 struct dma_device *dma = &device->common;
1206 1206
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 5fd6e2de84db..e47083b52ee7 100644
--- a/drivers/dma/ioat/dma.h
+++ b/drivers/dma/ioat/dma.h
@@ -217,11 +217,12 @@ ioat_chan_by_index(struct ioatdma_device *device, int index)
217 return device->idx[index]; 217 return device->idx[index];
218} 218}
219 219
220int ioat_probe(struct ioatdma_device *device); 220int __devinit ioat_probe(struct ioatdma_device *device);
221int ioat_register(struct ioatdma_device *device); 221int __devinit ioat_register(struct ioatdma_device *device);
222int ioat1_dma_probe(struct ioatdma_device *dev, int dca); 222int __devinit ioat1_dma_probe(struct ioatdma_device *dev, int dca);
223void ioat_dma_remove(struct ioatdma_device *device); 223void __devexit ioat_dma_remove(struct ioatdma_device *device);
224struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase); 224struct dca_provider * __devinit ioat_dca_init(struct pci_dev *pdev,
225 void __iomem *iobase);
225unsigned long ioat_get_current_completion(struct ioat_chan_common *chan); 226unsigned long ioat_get_current_completion(struct ioat_chan_common *chan);
226void ioat_init_channel(struct ioatdma_device *device, 227void ioat_init_channel(struct ioatdma_device *device,
227 struct ioat_chan_common *chan, int idx, 228 struct ioat_chan_common *chan, int idx,
diff --git a/drivers/dma/ioat/dma_v2.c b/drivers/dma/ioat/dma_v2.c
index 2f34f290041e..1aa2974e7a93 100644
--- a/drivers/dma/ioat/dma_v2.c
+++ b/drivers/dma/ioat/dma_v2.c
@@ -683,7 +683,7 @@ ioat2_is_complete(struct dma_chan *c, dma_cookie_t cookie,
683 return ioat_is_complete(c, cookie, done, used); 683 return ioat_is_complete(c, cookie, done, used);
684} 684}
685 685
686int ioat2_dma_probe(struct ioatdma_device *device, int dca) 686int __devinit ioat2_dma_probe(struct ioatdma_device *device, int dca)
687{ 687{
688 struct pci_dev *pdev = device->pdev; 688 struct pci_dev *pdev = device->pdev;
689 struct dma_device *dma; 689 struct dma_device *dma;
@@ -722,7 +722,7 @@ int ioat2_dma_probe(struct ioatdma_device *device, int dca)
722 return err; 722 return err;
723} 723}
724 724
725int ioat3_dma_probe(struct ioatdma_device *device, int dca) 725int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca)
726{ 726{
727 struct pci_dev *pdev = device->pdev; 727 struct pci_dev *pdev = device->pdev;
728 struct dma_device *dma; 728 struct dma_device *dma;
diff --git a/drivers/dma/ioat/dma_v2.h b/drivers/dma/ioat/dma_v2.h
index c72ccb5dfd5b..bdde5373cf66 100644
--- a/drivers/dma/ioat/dma_v2.h
+++ b/drivers/dma/ioat/dma_v2.h
@@ -127,8 +127,8 @@ ioat2_get_ring_ent(struct ioat2_dma_chan *ioat, u16 idx)
127 return ioat->ring[idx & ioat2_ring_mask(ioat)]; 127 return ioat->ring[idx & ioat2_ring_mask(ioat)];
128} 128}
129 129
130int ioat2_dma_probe(struct ioatdma_device *dev, int dca); 130int __devinit ioat2_dma_probe(struct ioatdma_device *dev, int dca);
131int ioat3_dma_probe(struct ioatdma_device *dev, int dca); 131int __devinit ioat3_dma_probe(struct ioatdma_device *dev, int dca);
132struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase); 132struct dca_provider * __devinit ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase);
133struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase); 133struct dca_provider * __devinit ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase);
134#endif /* IOATDMA_V2_H */ 134#endif /* IOATDMA_V2_H */