]> 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)
commitf496b5c89afccaedc2a18a6ee742426376616026
treeac526def6f61ba45e5f1aef8f77c931c3673d233
parent66a213b27db7c53fdf00c6efd2b63a2688d5582f
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