cpufreq: dt: Include types.h from cpufreq-dt.h
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 30 Mar 2016 08:15:25 +0000 (13:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:18:42 +0000 (01:18 +0200)
cpufreq-dt.h uses 'bool' data type but doesn't include types.h. It works
fine for now as the files that include cpufreq-dt.h, also include
types.h directly or indirectly.

But, when a file includes cpufreq-dt.h without including types.h, we get
a build error. Avoid such errors by including types.h in cpufreq-dt
itself.

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

index 0414009e2c30668c1474a58b497db5f9ee4630aa..a87335a1660c955db3a88c70217700a29699d47a 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CPUFREQ_DT_H__
 #define __CPUFREQ_DT_H__
 
+#include <linux/types.h>
+
 struct cpufreq_dt_platform_data {
        /*
         * True when each CPU has its own clock to control its