aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-08-29 22:09:26 -0400
committerDan Williams <dan.j.williams@intel.com>2009-08-29 22:09:26 -0400
commitaf1f951eb6ef27b01cbfb3f6c21b770af4368a6d (patch)
tree2009d83f93be62856eebbe9a41310d8ead4a6a13
parentad283ea4a3ce82cda2efe33163748a397b31b1eb (diff)
async_tx: kill needless module_{init|exit}
If module_init and module_exit are nops then neither need to be defined. [ Impact: pure cleanup ] Reviewed-by: Andre Noll <maan@systemlinux.org> Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--crypto/async_tx/async_memcpy.c13
-rw-r--r--crypto/async_tx/async_memset.c13
-rw-r--r--crypto/async_tx/async_tx.c17
3 files changed, 3 insertions, 40 deletions
diff --git a/crypto/async_tx/async_memcpy.c b/crypto/async_tx/async_memcpy.c
index 89e05556f3df..98e15bd0dcb5 100644
--- a/crypto/async_tx/async_memcpy.c
+++ b/crypto/async_tx/async_memcpy.c
@@ -90,19 +90,6 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
90} 90}
91EXPORT_SYMBOL_GPL(async_memcpy); 91EXPORT_SYMBOL_GPL(async_memcpy);
92 92
93static int __init async_memcpy_init(void)
94{
95 return 0;
96}
97
98static void __exit async_memcpy_exit(void)
99{
100 do { } while (0);
101}
102
103module_init(async_memcpy_init);
104module_exit(async_memcpy_exit);
105
106MODULE_AUTHOR("Intel Corporation"); 93MODULE_AUTHOR("Intel Corporation");
107MODULE_DESCRIPTION("asynchronous memcpy api"); 94MODULE_DESCRIPTION("asynchronous memcpy api");
108MODULE_LICENSE("GPL"); 95MODULE_LICENSE("GPL");
diff --git a/crypto/async_tx/async_memset.c b/crypto/async_tx/async_memset.c
index c14437238f4c..b896a6e5f673 100644
--- a/crypto/async_tx/async_memset.c
+++ b/crypto/async_tx/async_memset.c
@@ -80,19 +80,6 @@ async_memset(struct page *dest, int val, unsigned int offset, size_t len,
80} 80}
81EXPORT_SYMBOL_GPL(async_memset); 81EXPORT_SYMBOL_GPL(async_memset);
82 82
83static int __init async_memset_init(void)
84{
85 return 0;
86}
87
88static void __exit async_memset_exit(void)
89{
90 do { } while (0);
91}
92
93module_init(async_memset_init);
94module_exit(async_memset_exit);
95
96MODULE_AUTHOR("Intel Corporation"); 83MODULE_AUTHOR("Intel Corporation");
97MODULE_DESCRIPTION("asynchronous memset api"); 84MODULE_DESCRIPTION("asynchronous memset api");
98MODULE_LICENSE("GPL"); 85MODULE_LICENSE("GPL");
diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 802a5ce437d9..6e37ad3f4417 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -42,6 +42,9 @@ static void __exit async_tx_exit(void)
42 async_dmaengine_put(); 42 async_dmaengine_put();
43} 43}
44 44
45module_init(async_tx_init);
46module_exit(async_tx_exit);
47
45/** 48/**
46 * __async_tx_find_channel - find a channel to carry out the operation or let 49 * __async_tx_find_channel - find a channel to carry out the operation or let
47 * the transaction execute synchronously 50 * the transaction execute synchronously
@@ -61,17 +64,6 @@ __async_tx_find_channel(struct async_submit_ctl *submit,
61 return async_dma_find_channel(tx_type); 64 return async_dma_find_channel(tx_type);
62} 65}
63EXPORT_SYMBOL_GPL(__async_tx_find_channel); 66EXPORT_SYMBOL_GPL(__async_tx_find_channel);
64#else
65static int __init async_tx_init(void)
66{
67 printk(KERN_INFO "async_tx: api initialized (sync-only)\n");
68 return 0;
69}
70
71static void __exit async_tx_exit(void)
72{
73 do { } while (0);
74}
75#endif 67#endif
76 68
77 69
@@ -298,9 +290,6 @@ void async_tx_quiesce(struct dma_async_tx_descriptor **tx)
298} 290}
299EXPORT_SYMBOL_GPL(async_tx_quiesce); 291EXPORT_SYMBOL_GPL(async_tx_quiesce);
300 292
301module_init(async_tx_init);
302module_exit(async_tx_exit);
303
304MODULE_AUTHOR("Intel Corporation"); 293MODULE_AUTHOR("Intel Corporation");
305MODULE_DESCRIPTION("Asynchronous Bulk Memory Transactions API"); 294MODULE_DESCRIPTION("Asynchronous Bulk Memory Transactions API");
306MODULE_LICENSE("GPL"); 295MODULE_LICENSE("GPL");