OSDN Git Service

fsl/fman: remove of_node
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 16 Oct 2017 18:36:05 +0000 (21:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Oct 2017 12:44:46 +0000 (13:44 +0100)
commit48167c9ce0b91c068430345bf039c7be23fa2f3f
tree79f923832467eafcb2a0dd52a9ad40e20dfb311d
parent2dc7c1fef9565c73c5054fd3c134afada09476c1
fsl/fman: remove of_node

The FMan MAC driver allocates a platform device for the Ethernet
driver to probe on. Setting pdev->dev.of_node with the MAC node
triggers the MAC driver probing of the new platform device. While
this fails quickly and does not affect the functionality of the
drivers, it is incorrect and must be removed. This was added to
address a report that DSA code using of_find_net_device_by_node()
is unable to use the DPAA interfaces. Error message seen before
this fix:

fsl_mac dpaa-ethernet.0: __devm_request_mem_region(mac) failed
fsl_mac: probe of dpaa-ethernet.0 failed with error -16

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c