cpufreq: update driver_data->flags only if we are registering driver
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 2 Jan 2015 07:04:30 +0000 (12:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:49:34 +0000 (22:49 +0100)
commitbc68b7dfda54373fb5d0cee8c44a070d590b8433
tree8bd57ab09602bf5018351b09bd60606e2da8726d
parentd92d50a4622b55cf114033309286696b3bd0fa5b
cpufreq: update driver_data->flags only if we are registering driver

We should first check if a cpufreq driver is already registered or not
before updating driver_data->flags.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c