pwm: lpss: Move clk_rate check to ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Jul 2016 15:36:27 +0000 (18:36 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 11 Jul 2016 10:49:24 +0000 (12:49 +0200)
commitd9cd4a73693bc7153766d22079e0fc90c0fc1107
tree23d7470561f3df9e6727fb99678fcf7fefcf5509
parentb89b4b7a3d0adab8de1062579e4305d05a028c31
pwm: lpss: Move clk_rate check to ->probe()

There is no need to check each time if the clk_rate defined or not when we call
pwm_lpss_config(). Move the check to ->probe() instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss.c