Commit 5bcec54f authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] Partially revert a7edd0e6

Due to conflicts with the network drivers tree.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 01b2726d
...@@ -2320,7 +2320,7 @@ static int ehea_setup_single_port(struct ehea_port *port, ...@@ -2320,7 +2320,7 @@ static int ehea_setup_single_port(struct ehea_port *port,
struct net_device *dev = port->netdev; struct net_device *dev = port->netdev;
struct ehea_adapter *adapter = port->adapter; struct ehea_adapter *adapter = port->adapter;
struct hcp_ehea_port_cb4 *cb4; struct hcp_ehea_port_cb4 *cb4;
const u32 *dn_log_port_id; u32 *dn_log_port_id;
int jumbo = 0; int jumbo = 0;
sema_init(&port->port_lock, 1); sema_init(&port->port_lock, 1);
...@@ -2336,7 +2336,7 @@ static int ehea_setup_single_port(struct ehea_port *port, ...@@ -2336,7 +2336,7 @@ static int ehea_setup_single_port(struct ehea_port *port,
port->of_dev_node = dn; port->of_dev_node = dn;
/* Determine logical port id */ /* Determine logical port id */
dn_log_port_id = get_property(dn, "ibm,hea-port-no", NULL); dn_log_port_id = (u32*)get_property(dn, "ibm,hea-port-no", NULL);
if (!dn_log_port_id) { if (!dn_log_port_id) {
ehea_error("bad device node: dn_log_port_id=%p", ehea_error("bad device node: dn_log_port_id=%p",
...@@ -2492,7 +2492,7 @@ static int __devinit ehea_probe(struct ibmebus_dev *dev, ...@@ -2492,7 +2492,7 @@ static int __devinit ehea_probe(struct ibmebus_dev *dev,
const struct of_device_id *id) const struct of_device_id *id)
{ {
struct ehea_adapter *adapter; struct ehea_adapter *adapter;
const u64 *adapter_handle; u64 *adapter_handle;
int ret; int ret;
adapter = kzalloc(sizeof(*adapter), GFP_KERNEL); adapter = kzalloc(sizeof(*adapter), GFP_KERNEL);
...@@ -2502,7 +2502,7 @@ static int __devinit ehea_probe(struct ibmebus_dev *dev, ...@@ -2502,7 +2502,7 @@ static int __devinit ehea_probe(struct ibmebus_dev *dev,
goto out; goto out;
} }
adapter_handle = get_property(dev->ofdev.node, "ibm,hea-handle", adapter_handle = (u64*)get_property(dev->ofdev.node, "ibm,hea-handle",
NULL); NULL);
if (adapter_handle) if (adapter_handle)
adapter->handle = *adapter_handle; adapter->handle = *adapter_handle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment