powerpc/iommu: Fix comments with it_page_shift
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 15 Jul 2014 09:24:25 +0000 (19:24 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 06:33:43 +0000 (16:33 +1000)
There is a couple of commented debug prints which still use
IOMMU_PAGE_SHIFT() which is not defined for POWERPC anymore, replace
them with it_page_shift.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/iommu.c

index 88e3ec6e1d965a38ade11ecff745e8c029e84ced..f84f799babb1271b566de19dc23ffeb0c251ddfe 100644 (file)
@@ -1037,7 +1037,7 @@ int iommu_tce_build(struct iommu_table *tbl, unsigned long entry,
 
        /* if (unlikely(ret))
                pr_err("iommu_tce: %s failed on hwaddr=%lx ioba=%lx kva=%lx ret=%d\n",
-                       __func__, hwaddr, entry << IOMMU_PAGE_SHIFT(tbl),
+                       __func__, hwaddr, entry << tbl->it_page_shift,
                                hwaddr, ret); */
 
        return ret;
@@ -1056,7 +1056,7 @@ int iommu_put_tce_user_mode(struct iommu_table *tbl, unsigned long entry,
                        direction != DMA_TO_DEVICE, &page);
        if (unlikely(ret != 1)) {
                /* pr_err("iommu_tce: get_user_pages_fast failed tce=%lx ioba=%lx ret=%d\n",
-                               tce, entry << IOMMU_PAGE_SHIFT(tbl), ret); */
+                               tce, entry << tbl->it_page_shift, ret); */
                return -EFAULT;
        }
        hwaddr = (unsigned long) page_address(page) + offset;