Skip to content

Commit

Permalink
ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Rafael J. Wysocki committed Jan 7, 2021
1 parent e71ba94 commit ee61cfd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee61cfd

Please sign in to comment.