[SPARC64]: Convert sparc64 PCI layer to in-kernel device tree.
One thing this change pointed out was that we really should pull the "get 'local-mac-address' property" logic into a helper function all the network drivers can call. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -243,8 +243,8 @@ static int openprom_sunos_ioctl(struct inode * inode, struct file * file,
|
||||
((int *) opp->oprom_array)[1]);
|
||||
|
||||
pcp = pdev->sysdata;
|
||||
if (pcp != NULL && pcp->prom_node != -1 && pcp->prom_node) {
|
||||
node = pcp->prom_node;
|
||||
if (pcp != NULL) {
|
||||
node = pcp->prom_node->node;
|
||||
data->current_node = node;
|
||||
*((int *)opp->oprom_array) = node;
|
||||
opp->oprom_size = sizeof(int);
|
||||
|
Reference in New Issue
Block a user