Merge tag 'devprop-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[muen/linux.git] / include / linux / acpi.h
index 99f96df83dd8db2b09bad8735b29d2900f824e44..c749eef1daa1557910ec81c5f296dc907f5ccab2 100644 (file)
@@ -57,6 +57,9 @@ static inline acpi_handle acpi_device_handle(struct acpi_device *adev)
        acpi_fwnode_handle(adev) : NULL)
 #define ACPI_HANDLE(dev)               acpi_device_handle(ACPI_COMPANION(dev))
 
+
+extern const struct fwnode_operations acpi_fwnode_ops;
+
 static inline struct fwnode_handle *acpi_alloc_fwnode_static(void)
 {
        struct fwnode_handle *fwnode;
@@ -66,6 +69,7 @@ static inline struct fwnode_handle *acpi_alloc_fwnode_static(void)
                return NULL;
 
        fwnode->type = FWNODE_ACPI_STATIC;
+       fwnode->ops = &acpi_fwnode_ops;
 
        return fwnode;
 }