aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/async_tx/async_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/async_tx/async_tx.c')
-rw-r--r--crypto/async_tx/async_tx.c17
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
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");