]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcaae26e8b99cec307e46eb6720667816f107156e
tree51ade5517a4830a8a86ec330b3e8eb7b8f9a20f5
parent8d379084e29a54fa59dea0b287df1a7eab996ad8
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