From: Felipe Balbi Date: Thu, 6 Sep 2012 12:45:27 +0000 (+0300) Subject: serial: omap: set dev->drvdata before enabling pm_runtime X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93220dcc3052182e7156c09655ad1316055564b9;p=pandora-kernel.git 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 Acked-by: Santosh Shilimkar Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed