diff options
Diffstat (limited to 'drivers/net/can/mcp251x.c')
-rw-r--r-- | drivers/net/can/mcp251x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c index 346785c56a25..9120a36ec702 100644 --- a/drivers/net/can/mcp251x.c +++ b/drivers/net/can/mcp251x.c | |||
@@ -1020,8 +1020,7 @@ static int __devinit mcp251x_can_probe(struct spi_device *spi) | |||
1020 | GFP_DMA); | 1020 | GFP_DMA); |
1021 | 1021 | ||
1022 | if (priv->spi_tx_buf) { | 1022 | if (priv->spi_tx_buf) { |
1023 | priv->spi_rx_buf = (u8 *)(priv->spi_tx_buf + | 1023 | priv->spi_rx_buf = (priv->spi_tx_buf + (PAGE_SIZE / 2)); |
1024 | (PAGE_SIZE / 2)); | ||
1025 | priv->spi_rx_dma = (dma_addr_t)(priv->spi_tx_dma + | 1024 | priv->spi_rx_dma = (dma_addr_t)(priv->spi_tx_dma + |
1026 | (PAGE_SIZE / 2)); | 1025 | (PAGE_SIZE / 2)); |
1027 | } else { | 1026 | } else { |