cpufreq: intel_pstate: Drop driver_registered variable
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Mar 2017 22:13:00 +0000 (00:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:12:15 +0000 (23:12 +0200)
commitee8df89a68f27a7484f1fc71d3d69149dd4dd267
tree3d9a32c76c7d4dab1898c469ae00689ea753fdac
parent694cb173475a048a05daebf27cc8fdb7865c158b
cpufreq: intel_pstate: Drop driver_registered variable

The driver_registered variable in intel_pstate is used for checking
whether or not the driver has been registered, but intel_pstate_driver
can be used for that too (with the rule that the driver is not
registered as long as it is NULL).

That is a bit more straightforward and the code may be simplified
a bit this way, so modify the driver accordingly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c