diff options
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 8b086299ba25..bca3fc427b45 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -34,11 +34,6 @@ | |||
34 | #include <asm/abs_addr.h> | 34 | #include <asm/abs_addr.h> |
35 | #include <asm/page.h> | 35 | #include <asm/page.h> |
36 | #include <asm/hvcall.h> | 36 | #include <asm/hvcall.h> |
37 | #include <asm/iseries/vio.h> | ||
38 | #include <asm/iseries/hv_types.h> | ||
39 | #include <asm/iseries/hv_lp_config.h> | ||
40 | #include <asm/iseries/hv_call_xm.h> | ||
41 | #include <asm/iseries/iommu.h> | ||
42 | 37 | ||
43 | static struct bus_type vio_bus_type; | 38 | static struct bus_type vio_bus_type; |
44 | 39 | ||
@@ -1042,7 +1037,6 @@ static void vio_cmo_sysfs_init(void) | |||
1042 | vio_bus_type.bus_attrs = vio_cmo_bus_attrs; | 1037 | vio_bus_type.bus_attrs = vio_cmo_bus_attrs; |
1043 | } | 1038 | } |
1044 | #else /* CONFIG_PPC_SMLPAR */ | 1039 | #else /* CONFIG_PPC_SMLPAR */ |
1045 | /* Dummy functions for iSeries platform */ | ||
1046 | int vio_cmo_entitlement_update(size_t new_entitlement) { return 0; } | 1040 | int vio_cmo_entitlement_update(size_t new_entitlement) { return 0; } |
1047 | void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) {} | 1041 | void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) {} |
1048 | static int vio_cmo_bus_probe(struct vio_dev *viodev) { return 0; } | 1042 | static int vio_cmo_bus_probe(struct vio_dev *viodev) { return 0; } |
@@ -1060,9 +1054,6 @@ static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) | |||
1060 | struct iommu_table *tbl; | 1054 | struct iommu_table *tbl; |
1061 | unsigned long offset, size; | 1055 | unsigned long offset, size; |
1062 | 1056 | ||
1063 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
1064 | return vio_build_iommu_table_iseries(dev); | ||
1065 | |||
1066 | dma_window = of_get_property(dev->dev.of_node, | 1057 | dma_window = of_get_property(dev->dev.of_node, |
1067 | "ibm,my-dma-window", NULL); | 1058 | "ibm,my-dma-window", NULL); |
1068 | if (!dma_window) | 1059 | if (!dma_window) |
@@ -1195,8 +1186,7 @@ static void __devinit vio_dev_release(struct device *dev) | |||
1195 | { | 1186 | { |
1196 | struct iommu_table *tbl = get_iommu_table_base(dev); | 1187 | struct iommu_table *tbl = get_iommu_table_base(dev); |
1197 | 1188 | ||
1198 | /* iSeries uses a common table for all vio devices */ | 1189 | if (tbl) |
1199 | if (!firmware_has_feature(FW_FEATURE_ISERIES) && tbl) | ||
1200 | iommu_free_table(tbl, dev->of_node ? | 1190 | iommu_free_table(tbl, dev->of_node ? |
1201 | dev->of_node->full_name : dev_name(dev)); | 1191 | dev->of_node->full_name : dev_name(dev)); |
1202 | of_node_put(dev->of_node); | 1192 | of_node_put(dev->of_node); |
@@ -1244,12 +1234,6 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) | |||
1244 | viodev->name = of_node->name; | 1234 | viodev->name = of_node->name; |
1245 | viodev->type = of_node->type; | 1235 | viodev->type = of_node->type; |
1246 | viodev->unit_address = *unit_address; | 1236 | viodev->unit_address = *unit_address; |
1247 | if (firmware_has_feature(FW_FEATURE_ISERIES)) { | ||
1248 | unit_address = of_get_property(of_node, | ||
1249 | "linux,unit_address", NULL); | ||
1250 | if (unit_address != NULL) | ||
1251 | viodev->unit_address = *unit_address; | ||
1252 | } | ||
1253 | viodev->dev.of_node = of_node_get(of_node); | 1237 | viodev->dev.of_node = of_node_get(of_node); |
1254 | 1238 | ||
1255 | if (firmware_has_feature(FW_FEATURE_CMO)) | 1239 | if (firmware_has_feature(FW_FEATURE_CMO)) |