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)
commit626a5aaa50673a1340ef46e049929709c83d184a
tree5d6d9a5be7800661abf4f3816adeab2b395b9efb
parent34ba23b44c664792a4308ec37b5788a3162944ec
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