Skip to content
Commit 56afb8d4 authored by Yongxin Liu's avatar Yongxin Liu Committed by Hans de Goede
Browse files

Revert "platform/x86: wmi: Destroy on cleanup rather than unregister"

This reverts commit 7b11e898

.

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: default avatarYongxin Liu <yongxin.liu@windriver.com>
Link: https://lore.kernel.org/r/20191115052710.46880-1-yongxin.liu@windriver.com
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 411269ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment