]> Pileus Git - ~andy/linux/commit
PM / OPP: fix condition for empty of_init_opp_table()
authorShawn Guo <shawn.guo@linaro.org>
Thu, 21 Feb 2013 11:04:45 +0000 (11:04 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Feb 2013 23:30:08 +0000 (00:30 +0100)
commitd6561bb206aae9de8eee4516549339ee96386b87
tree5a66c61720d0608edbf85c3d917d18a880301d93
parent6be264986152c498562f26b15ed73c70aa37ce48
PM / OPP: fix condition for empty of_init_opp_table()

randconfig build reports the following error which is caused by
CONFIG_PM_OPP being unset.

  CC      arch/arm/mach-imx/mach-imx6q.o
arch/arm/mach-imx/mach-imx6q.c: In function ‘imx6q_opp_init’:
arch/arm/mach-imx/mach-imx6q.c:248:2: error: implicit declaration of function ‘of_init_opp_table’ [-Werror=implicit-function-declaration]

Fix the error by giving a more correct condition for empty
of_init_opp_table() implementation.

Reported-by: Rob Herring <robherring2@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/opp.h