OSDN Git Service

net: mvpp2: use device_*/fwnode_* APIs instead of of_*
authorMarcin Wojtas <mw@semihalf.com>
Thu, 18 Jan 2018 12:31:43 +0000 (13:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 15:57:04 +0000 (10:57 -0500)
commit248122212f68dcf13433ec56bb03ddc799259026
tree51ade5517a4830a8a86ec330b3e8eb7b8f9a20f5
parentbf147153d7f4b0d7337b28040837d9272c1a99fe
net: mvpp2: use device_*/fwnode_* APIs instead of of_*

OF functions can be used only for the driver using DT.
As a preparation for introducing ACPI support in mvpp2
driver, use struct fwnode_handle in order to obtain
properties from the hardware description.

This patch replaces of_* function with device_*/fwnode_*
where possible in the mvpp2.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c