diff options
author | Roald Frederickx <roald.frederickx@gmail.com> | 2014-08-13 16:40:14 -0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-08-16 04:23:55 -0400 |
commit | 9a5ee65572e88ddfc179fa81e1daed55d5772711 (patch) | |
tree | d279fa31f1262722aec4acbe7152d230d3014ded /drivers/platform/x86/compal-laptop.c | |
parent | e6efad7f292d99190b66d32f1ddcc764db0fa6f4 (diff) |
compal-laptop: correct invalid hwmon name
Change the name of the hwmon interface from "compal-laptop" to "compal".
A dash is an invalid character for a hwmon name and caused the call to
hwmon_device_register_with_groups() to fail.
Signed-off-by: Roald Frederickx <roald.frederickx@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform/x86/compal-laptop.c')
-rw-r--r-- | drivers/platform/x86/compal-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c index 7297df2ebf50..26bfd7bb5c13 100644 --- a/drivers/platform/x86/compal-laptop.c +++ b/drivers/platform/x86/compal-laptop.c | |||
@@ -1028,7 +1028,7 @@ static int compal_probe(struct platform_device *pdev) | |||
1028 | return err; | 1028 | return err; |
1029 | 1029 | ||
1030 | hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, | 1030 | hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, |
1031 | DRIVER_NAME, data, | 1031 | "compal", data, |
1032 | compal_hwmon_groups); | 1032 | compal_hwmon_groups); |
1033 | if (IS_ERR(hwmon_dev)) { | 1033 | if (IS_ERR(hwmon_dev)) { |
1034 | err = PTR_ERR(hwmon_dev); | 1034 | err = PTR_ERR(hwmon_dev); |