]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI
authorShawn Guo <shawn.guo@linaro.org>
Thu, 31 Dec 2020 11:35:25 +0000 (19:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:16 +0000 (18:26 +0100)
[ Upstream commit ee61cfd955a64a58ed35cbcfc54068fcbd486945 ]

It adds a stub acpi_create_platform_device() for !CONFIG_ACPI build, so
that caller doesn't have to deal with !CONFIG_ACPI build issue.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/acpi.h

index ce29a014e591cd1b7f51fc0177c650796b056c13..dd6170357ec7242110cfe4346a7bbf87ccecfcb5 100644 (file)
@@ -837,6 +837,13 @@ static inline int acpi_device_modalias(struct device *dev,
        return -ENODEV;
 }
 
+static inline struct platform_device *
+acpi_create_platform_device(struct acpi_device *adev,
+                           struct property_entry *properties)
+{
+       return NULL;
+}
+
 static inline bool acpi_dma_supported(struct acpi_device *adev)
 {
        return false;