]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: mscc-miim: add local dev variable to cleanup probe function
authorColin Foster <colin.foster@in-advantage.com>
Thu, 7 Apr 2022 23:44:45 +0000 (16:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Apr 2022 03:31:51 +0000 (20:31 -0700)
commit45365415b7b8b63bbc03d7acc98dfefb7f1cb735
tree5d6d9a5be7800661abf4f3816adeab2b395b9efb
parentec7abf605661f2e6622f245b1348baf9ab924aa4
net: mdio: mscc-miim: add local dev variable to cleanup probe function

Create a local device *dev in order to not dereference the platform_device
several times throughout the probe function.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mscc-miim.c