]> git.baikalelectronics.ru Git - kernel.git/commit
serial: omap: set dev->drvdata before enabling pm_runtime
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 12:45:27 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:17:01 +0000 (09:17 -0700)
commitb127f4125a7ecc3668b62f44af184f53645c444f
tree54d878de5d3f57f86897c23e86b8493e703ad7b7
parent8a45fb967e15925968a328aea326ea6462bf090c
serial: omap: set dev->drvdata before enabling pm_runtime

by the time we call our first pm_runtme_get_sync()
after enable pm_runtime, our resume method might
be called. To avoid problems, we must make sure
that our dev->drvdata is set correctly before
our resume method gets called.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c