OSDN Git Service

serial: msm_serial_hs: Move clk count voting out of runtime callbacks
authorGirish Mahadevan <girishm@codeaurora.org>
Wed, 25 May 2016 21:50:07 +0000 (15:50 -0600)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 2 Aug 2016 17:56:09 +0000 (10:56 -0700)
commitf09173df85d400ff5079b6c9bddc065c44088af2
treeb2cf7f670537ebf20fa17aac54aea2ae5370f076
parenta674be9d15884d30ebb6b9e9988c436b286841d9
serial: msm_serial_hs: Move clk count voting out of runtime callbacks

Don't modify the ref count variable clk count inside the runtime callbacks.
Doing so could result in a case where the driver might end up calling a put
twice on the runtime object. The resulting imbalance will leave the runtime
state for the device in a bad state.

Change-Id: I34989768811b23762c4afe3e33e229ffa3f1db17
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
drivers/tty/serial/msm_serial_hs.c