diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-30 23:51:32 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:31 -0400 |
commit | 9f9a3b8a06b7965335bfe5162c1a50e4d9c3859b (patch) | |
tree | 5dec611a543da0bf12ec504a8cd1b794dc2413cd /drivers | |
parent | a6afacb6b8ba3d2eed6406a018e604d6f9c0f97d (diff) |
[POWERPC] get_property returns const
This is the last place that needs changing since get_property was changed
to return "const void *".
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index c7a5614e66c0..519bb9f72d20 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -2603,14 +2603,13 @@ static int ehea_setup_ports(struct ehea_adapter *adapter) | |||
2603 | { | 2603 | { |
2604 | struct device_node *lhea_dn; | 2604 | struct device_node *lhea_dn; |
2605 | struct device_node *eth_dn = NULL; | 2605 | struct device_node *eth_dn = NULL; |
2606 | 2606 | const u32 *dn_log_port_id; | |
2607 | u32 *dn_log_port_id; | ||
2608 | int i = 0; | 2607 | int i = 0; |
2609 | 2608 | ||
2610 | lhea_dn = adapter->ebus_dev->ofdev.node; | 2609 | lhea_dn = adapter->ebus_dev->ofdev.node; |
2611 | while ((eth_dn = of_get_next_child(lhea_dn, eth_dn))) { | 2610 | while ((eth_dn = of_get_next_child(lhea_dn, eth_dn))) { |
2612 | 2611 | ||
2613 | dn_log_port_id = (u32*)get_property(eth_dn, "ibm,hea-port-no", | 2612 | dn_log_port_id = get_property(eth_dn, "ibm,hea-port-no", |
2614 | NULL); | 2613 | NULL); |
2615 | if (!dn_log_port_id) { | 2614 | if (!dn_log_port_id) { |
2616 | ehea_error("bad device node: eth_dn name=%s", | 2615 | ehea_error("bad device node: eth_dn name=%s", |
@@ -2645,12 +2644,12 @@ static struct device_node *ehea_get_eth_dn(struct ehea_adapter *adapter, | |||
2645 | { | 2644 | { |
2646 | struct device_node *lhea_dn; | 2645 | struct device_node *lhea_dn; |
2647 | struct device_node *eth_dn = NULL; | 2646 | struct device_node *eth_dn = NULL; |
2648 | u32 *dn_log_port_id; | 2647 | const u32 *dn_log_port_id; |
2649 | 2648 | ||
2650 | lhea_dn = adapter->ebus_dev->ofdev.node; | 2649 | lhea_dn = adapter->ebus_dev->ofdev.node; |
2651 | while ((eth_dn = of_get_next_child(lhea_dn, eth_dn))) { | 2650 | while ((eth_dn = of_get_next_child(lhea_dn, eth_dn))) { |
2652 | 2651 | ||
2653 | dn_log_port_id = (u32*)get_property(eth_dn, "ibm,hea-port-no", | 2652 | dn_log_port_id = get_property(eth_dn, "ibm,hea-port-no", |
2654 | NULL); | 2653 | NULL); |
2655 | if (dn_log_port_id) | 2654 | if (dn_log_port_id) |
2656 | if (*dn_log_port_id == logical_port_id) | 2655 | if (*dn_log_port_id == logical_port_id) |
@@ -2774,7 +2773,7 @@ static int __devinit ehea_probe_adapter(struct ibmebus_dev *dev, | |||
2774 | const struct of_device_id *id) | 2773 | const struct of_device_id *id) |
2775 | { | 2774 | { |
2776 | struct ehea_adapter *adapter; | 2775 | struct ehea_adapter *adapter; |
2777 | u64 *adapter_handle; | 2776 | const u64 *adapter_handle; |
2778 | int ret; | 2777 | int ret; |
2779 | 2778 | ||
2780 | if (!dev || !dev->ofdev.node) { | 2779 | if (!dev || !dev->ofdev.node) { |
@@ -2791,7 +2790,7 @@ static int __devinit ehea_probe_adapter(struct ibmebus_dev *dev, | |||
2791 | 2790 | ||
2792 | adapter->ebus_dev = dev; | 2791 | adapter->ebus_dev = dev; |
2793 | 2792 | ||
2794 | adapter_handle = (u64*)get_property(dev->ofdev.node, "ibm,hea-handle", | 2793 | adapter_handle = get_property(dev->ofdev.node, "ibm,hea-handle", |
2795 | NULL); | 2794 | NULL); |
2796 | if (adapter_handle) | 2795 | if (adapter_handle) |
2797 | adapter->handle = *adapter_handle; | 2796 | adapter->handle = *adapter_handle; |