accel/qaic: Order pci_remove() operations in reverse of probe()
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 8 Dec 2023 16:34:57 +0000 (09:34 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Wed, 20 Dec 2023 18:17:57 +0000 (11:17 -0700)
commit5202c721da4c96c137041b41c3d7caa57a329137
treef7324ccdd5f12de158ec778389df7d0c4aee612d
parent22ec9a3b73ddf5debf186a8041ad6c00a7b82b9c
accel/qaic: Order pci_remove() operations in reverse of probe()

In probe() we create the drm_device, and then register the MHI controller.
In remove(), we should unregister the controller first, then remove the
drm_device.  Update the remove() operations to match.

Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231208163457.1295993-8-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_drv.c