summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorRoald Frederickx <roald.frederickx@gmail.com>2014-08-13 13:40:14 -0700
committerLuis Henriques <luis.henriques@canonical.com>2015-05-04 16:06:39 +0100
commit445a9ae796eb0bb16363ea0a73400bb99023d27d (patch)
tree6f73b74717b3d61bba8b504c72f028b0b8d71397 /drivers/platform
parent0ff72fcd394adaf83cecf5d299e5cca65b3e6576 (diff)
compal-laptop: correct invalid hwmon name
commit 9a5ee65572e88ddfc179fa81e1daed55d5772711 upstream. 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> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/compal-laptop.c2
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)
return err;
hwmon_dev = hwmon_device_register_with_groups(&pdev->dev,
- DRIVER_NAME, data,
+ "compal", data,
compal_hwmon_groups);
if (IS_ERR(hwmon_dev)) {
err = PTR_ERR(hwmon_dev);