diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-07 16:58:17 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-08 09:08:53 +0200 |
commit | 5d785141c8b30d252ebab897429022da379bdb0f (patch) | |
tree | e29c88bb99fcb1477d77d81622b6f1921e19daf7 /drivers/spi/spi-pxa2xx.c | |
parent | spi: fsl-lpspi: Fix build warning when !CONFIG_PM (diff) | |
download | linux-5d785141c8b30d252ebab897429022da379bdb0f.tar.xz linux-5d785141c8b30d252ebab897429022da379bdb0f.zip |
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>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
0 files changed, 0 insertions, 0 deletions