Searched hist:"56 afb8d4" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/platform/x86/ |
H A D | wmi.c | 56afb8d4 Thu Nov 14 23:27:10 CST 2019 Yongxin Liu <yongxin.liu@windriver.com> Revert "platform/x86: wmi: Destroy on cleanup rather than unregister"
This reverts commit 7b11e8989618581bc0226ad313264cdc05d48d86.
Consider the following hardware setting.
|-PNP0C14:00 | |-- device #1 |-PNP0C14:01 | |-- device #2
When unloading wmi driver module, device #2 will be first unregistered. But device_destroy() using MKDEV(0, 0) will locate PNP0C14:00 first and unregister it. This is incorrect. Should use device_unregister() to unregister the real parent device.
Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Link: https://lore.kernel.org/r/20191115052710.46880-1-yongxin.liu@windriver.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|