Skip to content

Commit 345be5c

Browse files
hkallweitPaolo Abeni
authored andcommitted
net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
Since c909e68 ("hwmon: (core) Use device name as a fallback in devm_hwmon_device_register_with_info") we can simply provide NULL as name argument. Signed-off-by: Heiner Kallweit <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Maxime Chevallier <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 0426bd1 commit 345be5c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/net/phy/marvell-88q2xxx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -765,16 +765,10 @@ static int mv88q2xxx_hwmon_probe(struct phy_device *phydev)
765765
struct mv88q2xxx_priv *priv = phydev->priv;
766766
struct device *dev = &phydev->mdio.dev;
767767
struct device *hwmon;
768-
char *hwmon_name;
769768

770769
priv->enable_temp = true;
771-
hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
772-
if (IS_ERR(hwmon_name))
773-
return PTR_ERR(hwmon_name);
774770

775-
hwmon = devm_hwmon_device_register_with_info(dev,
776-
hwmon_name,
777-
phydev,
771+
hwmon = devm_hwmon_device_register_with_info(dev, NULL, phydev,
778772
&mv88q2xxx_hwmon_chip_info,
779773
NULL);
780774

0 commit comments

Comments
 (0)