gpio: xtensa: fix build when XCHAL_HAVE_CP is 0
authorBaruch Siach <baruch@tkos.co.il>
Thu, 23 Jan 2014 06:50:38 +0000 (08:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2014 08:11:45 +0000 (09:11 +0100)
In xtensa coprocessors may exist without coprocessor context, i.e. they cannot
be disabled/enabled. In this case the RSR_CPENABLE/WSR_CPENABLE are undefined,
thus breaking the build. Fix the build by adding dummy versions of
enable_cp/disable_cp in this case.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found