irda: sir_dev: Fix copy/paste typo
[firefly-linux-kernel-4.4.55.git] / lib / swiotlb.c
index 93ca08b8a451411c3c4ac18f1f9525637e4a7140..99093b396145957d52b5e88a183ee1eb9cedeb60 100644 (file)
@@ -110,6 +110,11 @@ setup_io_tlb_npages(char *str)
 __setup("swiotlb=", setup_io_tlb_npages);
 /* make io_tlb_overflow tunable too? */
 
+unsigned long swioltb_nr_tbl(void)
+{
+       return io_tlb_nslabs;
+}
+
 /* Note that this doesn't work with highmem page */
 static dma_addr_t swiotlb_virt_to_bus(struct device *hwdev,
                                      volatile void *address)