pwm: tiehrpwm: Set driver data before runtime PM enable
authorThierry Reding <thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:42:56 +0000 (08:42 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:42:56 +0000 (08:42 +0200)
commitd870c80e1d1523e449e98d230ea048257123b7cb
tree1edc35d7481de30c2776b2df292950de552ce6f6
parentd2c95e47f868322fe8c07495f1c589ebeb1c3fc9
pwm: tiehrpwm: Set driver data before runtime PM enable

Runtime PM callbacks can be run right after runtime PM is enabled, so
make sure to set the driver data before that. This is unlikely to ever
happen with the current driver, but it doesn't hurt to follow best
practices anyway.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiehrpwm.c