mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
hwmon: (nct6683) Display warning when enabling driver for unknown customer
Enabling the driver for devices with unknown customer ID is at least somewhat risky, so add a warning to the kernel log. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
5997eb60f8
commit
be7d9294a4
@ -1236,6 +1236,8 @@ static int nct6683_probe(struct platform_device *pdev)
|
|||||||
default:
|
default:
|
||||||
if (!force)
|
if (!force)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
dev_warn(dev, "Enabling support for unknown customer ID 0x%04x\n", data->customer_id);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
nct6683_init_device(data);
|
nct6683_init_device(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user