]> git.baikalelectronics.ru Git - kernel.git/commit
omap-rng: fix use of SIMPLE_DEV_PM_OPS
authorArnd Bergmann <arnd@arndb.de>
Sat, 4 Aug 2012 07:11:34 +0000 (07:11 +0000)
committerArnd Bergmann <arnd@arndb.de>
Fri, 10 Aug 2012 10:28:05 +0000 (12:28 +0200)
commit14e9d7e98f8e8761db517a1f5566caa1104a3ea3
tree2dda10584c1bbe7bac02752833235a201f70e9a1
parent5161cedcdfa5ed6993f89ce92f9fcf814b2c1eda
omap-rng: fix use of SIMPLE_DEV_PM_OPS

omap_rng_suspend and omap_rng_resume are unused if CONFIG_PM is enabled
but CONFIG_PM_SLEEP is disabled. I found this while building all defconfig
files on ARM. It's not clear to me if this is the right solution, but
at least it makes the code consistent again.

Without this patch, building omap1_defconfig results in:

drivers/char/hw_random/omap-rng.c:165:12: warning: 'omap_rng_suspend' defined but not used [-Wunused-function]
drivers/char/hw_random/omap-rng.c:171:12: warning: 'omap_rng_resume' defined but not used [-Wunused-function]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kevin Hilman <khilman@ti.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/omap-rng.c