diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_rio.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_rio.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index 71fba88f50db..a98d51639243 100644 --- a/arch/powerpc/sysdev/fsl_rio.c +++ b/arch/powerpc/sysdev/fsl_rio.c | |||
@@ -1015,41 +1015,41 @@ int fsl_rio_setup(struct of_device *dev) | |||
1015 | u64 law_start, law_size; | 1015 | u64 law_start, law_size; |
1016 | int paw, aw, sw; | 1016 | int paw, aw, sw; |
1017 | 1017 | ||
1018 | if (!dev->node) { | 1018 | if (!dev->dev.of_node) { |
1019 | dev_err(&dev->dev, "Device OF-Node is NULL"); | 1019 | dev_err(&dev->dev, "Device OF-Node is NULL"); |
1020 | return -EFAULT; | 1020 | return -EFAULT; |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | rc = of_address_to_resource(dev->node, 0, ®s); | 1023 | rc = of_address_to_resource(dev->dev.of_node, 0, ®s); |
1024 | if (rc) { | 1024 | if (rc) { |
1025 | dev_err(&dev->dev, "Can't get %s property 'reg'\n", | 1025 | dev_err(&dev->dev, "Can't get %s property 'reg'\n", |
1026 | dev->node->full_name); | 1026 | dev->dev.of_node->full_name); |
1027 | return -EFAULT; | 1027 | return -EFAULT; |
1028 | } | 1028 | } |
1029 | dev_info(&dev->dev, "Of-device full name %s\n", dev->node->full_name); | 1029 | dev_info(&dev->dev, "Of-device full name %s\n", dev->dev.of_node->full_name); |
1030 | dev_info(&dev->dev, "Regs: %pR\n", ®s); | 1030 | dev_info(&dev->dev, "Regs: %pR\n", ®s); |
1031 | 1031 | ||
1032 | dt_range = of_get_property(dev->node, "ranges", &rlen); | 1032 | dt_range = of_get_property(dev->dev.of_node, "ranges", &rlen); |
1033 | if (!dt_range) { | 1033 | if (!dt_range) { |
1034 | dev_err(&dev->dev, "Can't get %s property 'ranges'\n", | 1034 | dev_err(&dev->dev, "Can't get %s property 'ranges'\n", |
1035 | dev->node->full_name); | 1035 | dev->dev.of_node->full_name); |
1036 | return -EFAULT; | 1036 | return -EFAULT; |
1037 | } | 1037 | } |
1038 | 1038 | ||
1039 | /* Get node address wide */ | 1039 | /* Get node address wide */ |
1040 | cell = of_get_property(dev->node, "#address-cells", NULL); | 1040 | cell = of_get_property(dev->dev.of_node, "#address-cells", NULL); |
1041 | if (cell) | 1041 | if (cell) |
1042 | aw = *cell; | 1042 | aw = *cell; |
1043 | else | 1043 | else |
1044 | aw = of_n_addr_cells(dev->node); | 1044 | aw = of_n_addr_cells(dev->dev.of_node); |
1045 | /* Get node size wide */ | 1045 | /* Get node size wide */ |
1046 | cell = of_get_property(dev->node, "#size-cells", NULL); | 1046 | cell = of_get_property(dev->dev.of_node, "#size-cells", NULL); |
1047 | if (cell) | 1047 | if (cell) |
1048 | sw = *cell; | 1048 | sw = *cell; |
1049 | else | 1049 | else |
1050 | sw = of_n_size_cells(dev->node); | 1050 | sw = of_n_size_cells(dev->dev.of_node); |
1051 | /* Get parent address wide wide */ | 1051 | /* Get parent address wide wide */ |
1052 | paw = of_n_addr_cells(dev->node); | 1052 | paw = of_n_addr_cells(dev->dev.of_node); |
1053 | 1053 | ||
1054 | law_start = of_read_number(dt_range + aw, paw); | 1054 | law_start = of_read_number(dt_range + aw, paw); |
1055 | law_size = of_read_number(dt_range + aw + paw, sw); | 1055 | law_size = of_read_number(dt_range + aw + paw, sw); |
@@ -1089,9 +1089,9 @@ int fsl_rio_setup(struct of_device *dev) | |||
1089 | port->iores.flags = IORESOURCE_MEM; | 1089 | port->iores.flags = IORESOURCE_MEM; |
1090 | port->iores.name = "rio_io_win"; | 1090 | port->iores.name = "rio_io_win"; |
1091 | 1091 | ||
1092 | priv->bellirq = irq_of_parse_and_map(dev->node, 2); | 1092 | priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2); |
1093 | priv->txirq = irq_of_parse_and_map(dev->node, 3); | 1093 | priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3); |
1094 | priv->rxirq = irq_of_parse_and_map(dev->node, 4); | 1094 | priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4); |
1095 | dev_info(&dev->dev, "bellirq: %d, txirq: %d, rxirq %d\n", priv->bellirq, | 1095 | dev_info(&dev->dev, "bellirq: %d, txirq: %d, rxirq %d\n", priv->bellirq, |
1096 | priv->txirq, priv->rxirq); | 1096 | priv->txirq, priv->rxirq); |
1097 | 1097 | ||
@@ -1195,7 +1195,7 @@ static int __devinit fsl_of_rio_rpn_probe(struct of_device *dev, | |||
1195 | { | 1195 | { |
1196 | int rc; | 1196 | int rc; |
1197 | printk(KERN_INFO "Setting up RapidIO peer-to-peer network %s\n", | 1197 | printk(KERN_INFO "Setting up RapidIO peer-to-peer network %s\n", |
1198 | dev->node->full_name); | 1198 | dev->dev.of_node->full_name); |
1199 | 1199 | ||
1200 | rc = fsl_rio_setup(dev); | 1200 | rc = fsl_rio_setup(dev); |
1201 | if (rc) | 1201 | if (rc) |