|
@@ -17,6 +17,7 @@
|
|
* GNU General Public License for more details.
|
|
* GNU General Public License for more details.
|
|
*/
|
|
*/
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
|
|
+#include <linux/of.h>
|
|
#include <linux/opp.h>
|
|
#include <linux/opp.h>
|
|
#include <linux/cpu.h>
|
|
#include <linux/cpu.h>
|
|
|
|
|
|
@@ -40,6 +41,9 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def,
|
|
{
|
|
{
|
|
int i, r;
|
|
int i, r;
|
|
|
|
|
|
|
|
+ if (of_have_populated_dt())
|
|
|
|
+ return -EINVAL;
|
|
|
|
+
|
|
if (!opp_def || !opp_def_size) {
|
|
if (!opp_def || !opp_def_size) {
|
|
pr_err("%s: invalid params!\n", __func__);
|
|
pr_err("%s: invalid params!\n", __func__);
|
|
return -EINVAL;
|
|
return -EINVAL;
|