spi: fsl-lpspi: Clean up fsl_lpspi_probe
authorAxel Lin <axel.lin@ingics.com>
Sun, 7 Apr 2019 14:58:17 +0000 (22:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 8 Apr 2019 07:08:53 +0000 (14:08 +0700)
commit5d785141c8b30d252ebab897429022da379bdb0f
treee29c88bb99fcb1477d77d81622b6f1921e19daf7
parenta18656ea39855519495c9b996205b5fe9cf86123
spi: fsl-lpspi: Clean up fsl_lpspi_probe

Use is_slave local variable to avoid calling of_property_read_bool() twice.
Remove redudant assignment for controller->bus_num, set it once is enough.
Move setting controller->bits_per_word_mask close to the code init other
controller fields.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c