soc: renesas: Provide dummy rcar_rst_read_mode_pins() for compile-testing
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 25 Apr 2017 17:36:25 +0000 (19:36 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 28 Apr 2017 08:07:36 +0000 (10:07 +0200)
commit7b4ccb3c466f62bbf2f4dd5d6a143d945a6f3051
treec25f394341162721c72ea0f4122aa2c6044a562b
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
soc: renesas: Provide dummy rcar_rst_read_mode_pins() for compile-testing

If the R-Car RST driver is not included, compile-testing R-Car clock
drivers fails with a link error:

    undefined reference to `rcar_rst_read_mode_pins'

To fix this, provide a dummy version.  Use the exact same test logic as
in drivers/soc/renesas/Makefile, as there is no Kconfig symbol (yet) to
control compilation of the R-Car RST driver.

Fixes: 527c02f66d263d2e ("soc: renesas: Add R-Car RST driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
include/linux/soc/renesas/rcar-rst.h