spi: bcm2835: fix kbuild compile warnings/errors and a typo
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 12 May 2015 10:32:08 +0000 (10:32 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 10:42:16 +0000 (11:42 +0100)
commit7e52be0d576e8f7bc99a606f07b9d000c4340f04
tree198eaa44f665bd28cbf064007b1033a69f7d9ac3
parent3ecd37edaa2a6ba3246e2c35714be9316b1087fe
spi: bcm2835: fix kbuild compile warnings/errors and a typo

fixes several warnings/error emmitted by the kbuild system:
* warn: cast from pointer to integer of different size
  using size_t instead of u32
* error: 'SZ_4K' undeclared
  moved to PAGE_SIZE and PAGE_MASK instead

Review showed also a typo in the same code where tx_buff
was checked twice instead of checking both rx and tx_buff.

Reported by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c