|
@@ -544,9 +544,11 @@ __hwmon_device_register(struct device *dev, const char *name, void *drvdata,
|
|
|
struct device *hdev;
|
|
|
int i, j, err, id;
|
|
|
|
|
|
- /* Do not accept invalid characters in hwmon name attribute */
|
|
|
+ /* Complain about invalid characters in hwmon name attribute */
|
|
|
if (name && (!strlen(name) || strpbrk(name, "-* \t\n")))
|
|
|
- return ERR_PTR(-EINVAL);
|
|
|
+ dev_warn(dev,
|
|
|
+ "hwmon: '%s' is not a valid name attribute, please fix\n",
|
|
|
+ name);
|
|
|
|
|
|
id = ida_simple_get(&hwmon_ida, 0, 0, GFP_KERNEL);
|
|
|
if (id < 0)
|