]> 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)
commit4df0d5c8ab45d4b24b7ab0d5d40e2e7298ca4f9f
tree4267027a13a0d32aea6fe872beb7778d3049af0a
parent21f60b8ff021dd0bf6e80d45d1e1aaa184f763eb
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