spi: fsl-espi: improve return value handling in fsl_espi_probe
authorHeiner Kallweit <heiner.kallweit@web.de>
Sat, 17 Sep 2016 13:43:31 +0000 (15:43 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 24 Sep 2016 18:48:32 +0000 (19:48 +0100)
commit604042af7697314fffb16e266fd7d5ad488439cc
treee13c123f2e2dd91c55f6a7e33933da26cf04b262
parentacf692190f972ee2ed6578f30278f21c244d6148
spi: fsl-espi: improve return value handling in fsl_espi_probe

The return value of fsl_espi_probe (currently struct spi_master *)
is just used for checking whether an error occurred.
Change the return value type to int and simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c