diff options
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index ddeca142293c..8727e9c5eea4 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/idr.h> | 23 | #include <linux/idr.h> |
24 | 24 | ||
25 | #include "base.h" | 25 | #include "base.h" |
26 | #include "power/power.h" | ||
26 | 27 | ||
27 | /* For automatically allocated device IDs */ | 28 | /* For automatically allocated device IDs */ |
28 | static DEFINE_IDA(platform_devid_ida); | 29 | static DEFINE_IDA(platform_devid_ida); |
@@ -983,6 +984,7 @@ void __init early_platform_add_devices(struct platform_device **devs, int num) | |||
983 | dev = &devs[i]->dev; | 984 | dev = &devs[i]->dev; |
984 | 985 | ||
985 | if (!dev->devres_head.next) { | 986 | if (!dev->devres_head.next) { |
987 | pm_runtime_early_init(dev); | ||
986 | INIT_LIST_HEAD(&dev->devres_head); | 988 | INIT_LIST_HEAD(&dev->devres_head); |
987 | list_add_tail(&dev->devres_head, | 989 | list_add_tail(&dev->devres_head, |
988 | &early_platform_device_list); | 990 | &early_platform_device_list); |