aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien D'Ascenzio <[email protected]>2014-06-25 22:00:31 +0200
committerGuenter Roeck <[email protected]>2014-06-25 15:16:09 -0700
commitd26e0da783adbb94977f60dec9a035b427813b83 (patch)
tree56deefece9f4530aee0665a686f64b9d487f0dc3
parentadb578355fa81111dc16e9bd8b43d5c7570db2ea (diff)
hwmon: (gpio-fan) Change name used in hwmon_device_register_with_groups
Since commit 648cd48c9e566f53c5df30d79857e0937ae13b09 The hwmon name attributes must not include '-' so the name must be rename from gpio-fan to gpio_fan Signed-off-by: Julien D'Ascenzio <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r--drivers/hwmon/gpio-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c
index ba35e4d530b5..2566c43dd1e9 100644
--- a/drivers/hwmon/gpio-fan.c
+++ b/drivers/hwmon/gpio-fan.c
@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev)
/* Make this driver part of hwmon class. */
fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev,
- "gpio-fan", fan_data,
+ "gpio_fan", fan_data,
gpio_fan_groups);
if (IS_ERR(fan_data->hwmon_dev))
return PTR_ERR(fan_data->hwmon_dev);