aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Guo <[email protected]>2020-12-31 19:35:25 +0800
committerRafael J. Wysocki <[email protected]>2021-01-07 17:44:00 +0100
commitee61cfd955a64a58ed35cbcfc54068fcbd486945 (patch)
tree55aa88b396e323e8eb9fdf36833a3e79bcdda9f7
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 (diff)
ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI
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 <[email protected]> Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
-rw-r--r--include/linux/acpi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 2630c2e953f7..053bf05fb1f7 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -885,6 +885,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;