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.
Unified · Split
| @@ -885,6 +885,13 @@ static inline int acpi_device_modalias(struct device *dev, · 884 unmodified lines | ||
| 885 | 885 | return -ENODEV; |
| 886 | 886 | } |
| 887 | 887 | |
| 888 | +static inline struct platform_device * | |
| 889 | +acpi_create_platform_device(struct acpi_device *adev, | |
| 890 | + struct property_entry *properties) | |
| 891 | +{ | |
| 892 | + return NULL; | |
| 893 | +} | |
| 894 | + | |
| 888 | 895 | static inline bool acpi_dma_supported(struct acpi_device *adev) |
| 889 | 896 | { |
| 890 | 897 | return false; |