diff options
Diffstat (limited to 'crypto/async_tx/async_tx.c')
-rw-r--r-- | crypto/async_tx/async_tx.c | 17 |
1 files changed, 3 insertions, 14 deletions
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 | ||
45 | module_init(async_tx_init); | ||
46 | module_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 | } |
63 | EXPORT_SYMBOL_GPL(__async_tx_find_channel); | 66 | EXPORT_SYMBOL_GPL(__async_tx_find_channel); |
64 | #else | ||
65 | static int __init async_tx_init(void) | ||
66 | { | ||
67 | printk(KERN_INFO "async_tx: api initialized (sync-only)\n"); | ||
68 | return 0; | ||
69 | } | ||
70 | |||
71 | static 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 | } |
299 | EXPORT_SYMBOL_GPL(async_tx_quiesce); | 291 | EXPORT_SYMBOL_GPL(async_tx_quiesce); |
300 | 292 | ||
301 | module_init(async_tx_init); | ||
302 | module_exit(async_tx_exit); | ||
303 | |||
304 | MODULE_AUTHOR("Intel Corporation"); | 293 | MODULE_AUTHOR("Intel Corporation"); |
305 | MODULE_DESCRIPTION("Asynchronous Bulk Memory Transactions API"); | 294 | MODULE_DESCRIPTION("Asynchronous Bulk Memory Transactions API"); |
306 | MODULE_LICENSE("GPL"); | 295 | MODULE_LICENSE("GPL"); |