iommu=pt is a valid early param
authorAlex Williamson <alex.williamson@hp.com>
Thu, 30 Jul 2009 22:15:18 +0000 (16:15 -0600)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 3 Aug 2009 09:06:58 +0000 (10:06 +0100)
This avoids a "Malformed early option 'iommu'" warning on boot when
trying to use pass-through mode.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/x86/kernel/pci-dma.c

index 1a041bcf506bd8efd0d27a4e99e2003e07ff6445..ae13e34f724874469a4565a5bcfce7858b7cf4a3 100644 (file)
@@ -212,10 +212,8 @@ static __init int iommu_setup(char *p)
                if (!strncmp(p, "soft", 4))
                        swiotlb = 1;
 #endif
-               if (!strncmp(p, "pt", 2)) {
+               if (!strncmp(p, "pt", 2))
                        iommu_pass_through = 1;
-                       return 1;
-               }
 
                gart_parse_options(p);