spi: Export _find_by_node() for users

It's useful for some bindings.
-----BEGIN PGP SIGNATURE-----

iQFHBAABCgAxFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlutW28THGJyb29uaWVA
a2VybmVsLm9yZwAKCRAk1otyXVSH0LidB/sF3R1azW9zQiQSvpGVuGwSzQlX79YJ
uq4kaqrQT68OX/5cLMCWsq98JNdFLReb6uEX+B3iggfg6xuiwO4kH/l5msWJm17M
NlRN+0821l7A65Ulx966LSgaxW4+2Oajr6bXRk6WleZekkzg8DtDnOtWfn0tBUr8
lzH0/BGErp8kReNmHMT4WmPNb2j9I8WWstXgXcrEYjigYmdUNPUlFYkDlxQWoEdZ
knkLhB/Qkt3M1IeMuV5lCJfB2JSty9H8gIAWIPXooZkzXnQAlzecLt3E9+LnLESr
ErK7K5wjTsDQYz283gX4Xph2/wNmZiJWY+CeojFkPU6CTV029i5Cz7cO
=sEAI
-----END PGP SIGNATURE-----
spi: make OF helper available for others

The of_find_spi_device_by_node() helper function is useful for other
modules too. Export the funciton as GPL like all other spi helper
functions and make it available if CONFIG_OF is enabled, because it isn't
related to the CONFIG_OF_DYNAMIC context. Finally add a stub if
CONFIG_OF isn't enabled, so others must not care about it.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
2 files changed