From: Roald Frederickx Date: Wed, 13 Aug 2014 20:40:14 +0000 (-0700) Subject: compal-laptop: correct invalid hwmon name X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a5ee65572e88ddfc179fa81e1daed55d5772711;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Matthew Garrett --- 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);