]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0182a89a36bf6d81142eef00902e6a0652d4b9d3
treeac526def6f61ba45e5f1aef8f77c931c3673d233
parent57255267e696de4ad3f225f03c54a2001e07b517
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