]> err.no Git - linux-2.6/blobdiff - arch/powerpc/platforms/pseries/iommu.c
[PATCH] powerpc: Replace platform_is_lpar() with a firmware feature
[linux-2.6] / arch / powerpc / platforms / pseries / iommu.c
index 48cfbfc43f9921df42965ade250cf84887b68304..2643078433f0123f8997c7f98823934e7b1feadb 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * arch/ppc64/kernel/pSeries_iommu.c
- *
  * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen, IBM Corporation
  *
  * Rewrite, cleanup: 
@@ -582,7 +580,7 @@ void iommu_init_early_pSeries(void)
                return;
        }
 
-       if (platform_is_lpar()) {
+       if (firmware_has_feature(FW_FEATURE_LPAR)) {
                if (firmware_has_feature(FW_FEATURE_MULTITCE)) {
                        ppc_md.tce_build = tce_buildmulti_pSeriesLP;
                        ppc_md.tce_free  = tce_freemulti_pSeriesLP;