]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_pmc_ipc: Move PCI IDs to intel_scu_pcidrv.c
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Apr 2020 08:15:49 +0000 (11:15 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Apr 2020 10:18:25 +0000 (11:18 +0100)
commitb8da68f44f6dec243a4e9685af0ca0cdc1cd939c
tree4267027a13a0d32aea6fe872beb7778d3049af0a
parent781adff21c841196e846a5a88505f80d04b06016
platform/x86: intel_pmc_ipc: Move PCI IDs to intel_scu_pcidrv.c

The PCI probe driver in intel_pmc_ipc.c is a duplicate of what we
already have in intel_scu_pcidrv.c with the exception that the later also
creates SCU specific devices. Move the PCI IDs from the intel_pmc_ipc.c
to intel_scu.c and use driver_data to detect whether SCU devices need to
be created or not.

Also update Kconfig entry to mention all platforms supported by the
Intel SCU PCI driver and change dependency from X86_INTEL_MID to PCI
which is more generic.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/platform/x86/Kconfig
drivers/platform/x86/intel_pmc_ipc.c
drivers/platform/x86/intel_scu_pcidrv.c