Skip to content

Commit 0426bd1

Browse files
hkallweitPaolo Abeni
authored andcommitted
net: phy: mxl-gpy: 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 91ee219 commit 0426bd1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/net/phy/mxl-gpy.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,8 @@ static int gpy_hwmon_register(struct phy_device *phydev)
225225
{
226226
struct device *dev = &phydev->mdio.dev;
227227
struct device *hwmon_dev;
228-
char *hwmon_name;
229228

230-
hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
231-
if (IS_ERR(hwmon_name))
232-
return PTR_ERR(hwmon_name);
233-
234-
hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_name,
235-
phydev,
229+
hwmon_dev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
236230
&gpy_hwmon_chip_info,
237231
NULL);
238232

0 commit comments

Comments
 (0)