diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap_device.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index e920dd83e443..f989145480c8 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c | |||
@@ -222,6 +222,14 @@ static int _omap_device_notifier_call(struct notifier_block *nb, | |||
222 | dev_err(dev, "failed to idle\n"); | 222 | dev_err(dev, "failed to idle\n"); |
223 | } | 223 | } |
224 | break; | 224 | break; |
225 | case BUS_NOTIFY_BIND_DRIVER: | ||
226 | od = to_omap_device(pdev); | ||
227 | if (od && (od->_state == OMAP_DEVICE_STATE_ENABLED) && | ||
228 | pm_runtime_status_suspended(dev)) { | ||
229 | od->_driver_status = BUS_NOTIFY_BIND_DRIVER; | ||
230 | pm_runtime_set_active(dev); | ||
231 | } | ||
232 | break; | ||
225 | case BUS_NOTIFY_ADD_DEVICE: | 233 | case BUS_NOTIFY_ADD_DEVICE: |
226 | if (pdev->dev.of_node) | 234 | if (pdev->dev.of_node) |
227 | omap_device_build_from_dt(pdev); | 235 | omap_device_build_from_dt(pdev); |