mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
Since c909e68f81 ("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 <hkallweit1@gmail.com>
Link: https://patch.msgid.link/59c485e4-983c-42f6-9114-916703a62e3f@gmail.com
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
0426bd18af
commit
345be5cd6e
|
|
@ -765,16 +765,10 @@ static int mv88q2xxx_hwmon_probe(struct phy_device *phydev)
|
|||
struct mv88q2xxx_priv *priv = phydev->priv;
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
struct device *hwmon;
|
||||
char *hwmon_name;
|
||||
|
||||
priv->enable_temp = true;
|
||||
hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
|
||||
if (IS_ERR(hwmon_name))
|
||||
return PTR_ERR(hwmon_name);
|
||||
|
||||
hwmon = devm_hwmon_device_register_with_info(dev,
|
||||
hwmon_name,
|
||||
phydev,
|
||||
hwmon = devm_hwmon_device_register_with_info(dev, NULL, phydev,
|
||||
&mv88q2xxx_hwmon_chip_info,
|
||||
NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user