]> 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)
commit23c105afa8f5aa474b45f91a5f00a8e1aa067f29
tree5d6d9a5be7800661abf4f3816adeab2b395b9efb
parent2f2c2c6f03e402db1536ad0e5bab58ea058ed18a
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