diff options
| -rw-r--r-- | drivers/spi/spi-orion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index d96d67869d7b..744841e095e4 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
| @@ -84,8 +84,8 @@ static int orion_spi_set_transfer_size(struct orion_spi *orion_spi, int size) | |||
| 84 | orion_spi_clrbits(orion_spi, ORION_SPI_IF_CONFIG_REG, | 84 | orion_spi_clrbits(orion_spi, ORION_SPI_IF_CONFIG_REG, |
| 85 | ORION_SPI_IF_8_16_BIT_MODE); | 85 | ORION_SPI_IF_8_16_BIT_MODE); |
| 86 | } else { | 86 | } else { |
| 87 | pr_debug("Bad bits per word value %d (only 8 or 16 are " | 87 | pr_debug("Bad bits per word value %d (only 8 or 16 are allowed).\n", |
| 88 | "allowed).\n", size); | 88 | size); |
| 89 | return -EINVAL; | 89 | return -EINVAL; |
| 90 | } | 90 | } |
| 91 | 91 | ||
| @@ -407,7 +407,7 @@ static int orion_spi_probe(struct platform_device *pdev) | |||
| 407 | const u32 *iprop; | 407 | const u32 *iprop; |
| 408 | int size; | 408 | int size; |
| 409 | 409 | ||
| 410 | master = spi_alloc_master(&pdev->dev, sizeof *spi); | 410 | master = spi_alloc_master(&pdev->dev, sizeof(*spi)); |
| 411 | if (master == NULL) { | 411 | if (master == NULL) { |
| 412 | dev_dbg(&pdev->dev, "master allocation failed\n"); | 412 | dev_dbg(&pdev->dev, "master allocation failed\n"); |
| 413 | return -ENOMEM; | 413 | return -ENOMEM; |
