diff options
author | jh <jh@FreeBSD.org> | 2011-11-22 16:44:50 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2011-11-22 16:44:50 +0000 |
commit | 62da5e13f7b1d2be2ff47ea2b41a6b6a525e4ab4 (patch) | |
tree | 45290a17831a491ae158af362fde71b433d3df1b /sys/dev/acpi_support/acpi_wmi.c | |
parent | 6123cbfb2edc5d69a7cd104442dd30ccfc45be48 (diff) | |
download | FreeBSD-src-62da5e13f7b1d2be2ff47ea2b41a6b6a525e4ab4.zip FreeBSD-src-62da5e13f7b1d2be2ff47ea2b41a6b6a525e4ab4.tar.gz |
Append unit number to the WMI status device name to allow attaching
multiple acpi_wmi(4) instances.
PR: kern/162491
Reviewed by: avg
Diffstat (limited to 'sys/dev/acpi_support/acpi_wmi.c')
-rw-r--r-- | sys/dev/acpi_support/acpi_wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpi_support/acpi_wmi.c b/sys/dev/acpi_support/acpi_wmi.c index 2acc262..b0ddd6e 100644 --- a/sys/dev/acpi_support/acpi_wmi.c +++ b/sys/dev/acpi_support/acpi_wmi.c @@ -265,7 +265,7 @@ acpi_wmi_attach(device_t dev) acpi_wmi_ec_handler); } else { sc->wmistat_dev_t = make_dev(&wmistat_cdevsw, 0, UID_ROOT, - GID_WHEEL, 0644, "wmistat"); + GID_WHEEL, 0644, "wmistat%d", device_get_unit(dev)); sc->wmistat_dev_t->si_drv1 = sc; sc->wmistat_open_pid = 0; sc->wmistat_bufptr = -1; |