Skip to content
Commit 626a5aaa authored by Colin Foster's avatar Colin Foster Committed by Jakub Kicinski
Browse files

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: default avatarColin Foster <colin.foster@in-advantage.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 34ba23b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment