msm: clock: Return error upon invalid call to clk_set_rate
msm: clock: Return error upon invalid call to clk_set_rate

Calls to clk_set_rate should only change the voltage vote if the clock
is prepared. However, they need to check if the rate is valid even if
the clock is not prepared.

Change-Id: I5f13807e803689489f2b43bd58fbd8f46137c0e2
Signed-off-by: Patrick Daly <2c98d18550b6e94ee93faf6d92fa2bedb58842c9@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas