Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / pci / hotplug / acpiphp.h
index 2b859249303b8088352995bc23b57c47f7c36472..b0e61bf261a7cd8ef15e6293fd1f1acbe871482a 100644 (file)
@@ -142,6 +142,16 @@ static inline acpi_handle func_to_handle(struct acpiphp_func *func)
        return func_to_acpi_device(func)->handle;
 }
 
+struct acpiphp_root_context {
+       struct acpi_hotplug_context hp;
+       struct acpiphp_bridge *root_bridge;
+};
+
+static inline struct acpiphp_root_context *to_acpiphp_root_context(struct acpi_hotplug_context *hp)
+{
+       return container_of(hp, struct acpiphp_root_context, hp);
+}
+
 /*
  * struct acpiphp_attention_info - device specific attention registration
  *