From: Shawn Guo Date: Thu, 31 Dec 2020 11:35:25 +0000 (+0800) Subject: ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI X-Git-Tag: v4.9.253~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cad445bb7945c0eee1da179d2231fb20a1f566aa;p=thirdparty%2Fkernel%2Fstable.git ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI [ 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 Signed-off-by: Shawn Guo Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 5670bb9788bb4..192b045cc56ec 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -734,6 +734,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;