From: Srinivas Pandruvada Date: Tue, 3 Mar 2020 22:53:54 +0000 (-0800) Subject: platform/x86: ISST: Fix wrong unregister type X-Git-Tag: v5.10.7~2948^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cc8f6598978b8f30e70bc12f28fbbc9e26227cc;p=platform%2Fkernel%2Flinux-rpi.git platform/x86: ISST: Fix wrong unregister type The MMIO driver is not unregistering with the correct type with the ISST common core during module removal. This should be unregistered with ISST_IF_DEV_MMIO instead of ISST_IF_DEV_MBOX. Signed-off-by: Srinivas Pandruvada Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c index ad8c7c0..3584859 100644 --- a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +++ b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c @@ -126,7 +126,7 @@ static void isst_if_remove(struct pci_dev *pdev) struct isst_if_device *punit_dev; punit_dev = pci_get_drvdata(pdev); - isst_if_cdev_unregister(ISST_IF_DEV_MBOX); + isst_if_cdev_unregister(ISST_IF_DEV_MMIO); mutex_destroy(&punit_dev->mutex); }