net/fsl: xgmac_mdio: Use managed device resources
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 26 Jan 2022 16:05:40 +0000 (17:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2022 13:41:29 +0000 (13:41 +0000)
commit1d14eb15dc2c3961ffe88d20df17fb2e2eaf1504
treeac526def6f61ba45e5f1aef8f77c931c3673d233
parent15ca0518c1b36b86c832de54417b9b61b5f6a4c9
net/fsl: xgmac_mdio: Use managed device resources

All of the resources used by this driver has managed interfaces, so
use them. Heed the warning in the comment before platform_get_resource
and use a bare devm_ioremap to allow for non-exclusive access to the
IO memory.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c