]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / button: remove pointer to old lid_sysfs on unbind
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 29 Jul 2016 15:08:41 +0000 (17:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Aug 2016 23:27:20 +0000 (01:27 +0200)
commitfb4437fb9fa11d633067f517021cd6549b99f8e2
treea263b28989724854720f2d1a02fdb6fdaad3ebcb
parent47b1c5d945cd4e51d28848075a601564609be2ef
ACPI / button: remove pointer to old lid_sysfs on unbind

When we removed the procfs dir on error or if the driver is
unbound, the two variables acpi_lid_dir and acpi_button_dir
were not reset. On the next rebind, those static variables
were not null and we couldn't re-register the device again.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c