diff options
Diffstat (limited to 'lib/dma-debug.c')
-rw-r--r-- | lib/dma-debug.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index c6330b1a7be7..d0618aa13b49 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
@@ -1109,3 +1109,21 @@ void debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, | |||
1109 | } | 1109 | } |
1110 | EXPORT_SYMBOL(debug_dma_sync_sg_for_device); | 1110 | EXPORT_SYMBOL(debug_dma_sync_sg_for_device); |
1111 | 1111 | ||
1112 | static int __init dma_debug_driver_setup(char *str) | ||
1113 | { | ||
1114 | int i; | ||
1115 | |||
1116 | for (i = 0; i < NAME_MAX_LEN - 1; ++i, ++str) { | ||
1117 | current_driver_name[i] = *str; | ||
1118 | if (*str == 0) | ||
1119 | break; | ||
1120 | } | ||
1121 | |||
1122 | if (current_driver_name[0]) | ||
1123 | printk(KERN_INFO "DMA-API: enable driver filter for " | ||
1124 | "driver [%s]\n", current_driver_name); | ||
1125 | |||
1126 | |||
1127 | return 1; | ||
1128 | } | ||
1129 | __setup("dma_debug_driver=", dma_debug_driver_setup); | ||