diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-09-01 22:51:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-03 14:30:26 -0400 |
commit | b8434048dd19f1e87f0d53315b0507a6dc05668d (patch) | |
tree | 544b72e04f6ff25dd2052b20d85f36ef4cf3218d /drivers/spi/spi-orion.c | |
parent | fadcace703bbb985a996d01141499bd8d1f7d5bc (diff) |
spi: orion: Fix checkpatch issue
Fix the following checkpatch warnings.
WARNING: else is not generally useful after a break or return
WARNING: Missing a blank line after declarations
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-orion.c')
-rw-r--r-- | drivers/spi/spi-orion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index c4675fa8b645..345e7d61c399 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
@@ -179,8 +179,8 @@ static inline int orion_spi_wait_till_ready(struct orion_spi *orion_spi) | |||
179 | for (i = 0; i < ORION_SPI_WAIT_RDY_MAX_LOOP; i++) { | 179 | for (i = 0; i < ORION_SPI_WAIT_RDY_MAX_LOOP; i++) { |
180 | if (readl(spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG))) | 180 | if (readl(spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG))) |
181 | return 1; | 181 | return 1; |
182 | else | 182 | |
183 | udelay(1); | 183 | udelay(1); |
184 | } | 184 | } |
185 | 185 | ||
186 | return -1; | 186 | return -1; |
@@ -360,6 +360,7 @@ static int orion_spi_probe(struct platform_device *pdev) | |||
360 | master->bus_num = pdev->id; | 360 | master->bus_num = pdev->id; |
361 | if (pdev->dev.of_node) { | 361 | if (pdev->dev.of_node) { |
362 | u32 cell_index; | 362 | u32 cell_index; |
363 | |||
363 | if (!of_property_read_u32(pdev->dev.of_node, "cell-index", | 364 | if (!of_property_read_u32(pdev->dev.of_node, "cell-index", |
364 | &cell_index)) | 365 | &cell_index)) |
365 | master->bus_num = cell_index; | 366 | master->bus_num = cell_index; |