net: phy: mxl-gpy: 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/e34c4802-20ce-4556-a47c-812e602e8526@gmail.com
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
91ee219624
commit
0426bd18af
@@ -225,14 +225,8 @@ static int gpy_hwmon_register(struct phy_device *phydev)
|
||||
{
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
struct device *hwmon_dev;
|
||||
char *hwmon_name;
|
||||
|
||||
hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
|
||||
if (IS_ERR(hwmon_name))
|
||||
return PTR_ERR(hwmon_name);
|
||||
|
||||
hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_name,
|
||||
phydev,
|
||||
hwmon_dev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
|
||||
&gpy_hwmon_chip_info,
|
||||
NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user