spi: atmel_spi: using ip version to check whether has wdrbt
authorBo Shen <voice.shen@atmel.com>
Tue, 16 Apr 2013 23:42:42 +0000 (23:42 +0000)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 12 May 2013 14:36:11 +0000 (16:36 +0200)
commite0d2d3bd29e304ebd1f3ba131cf9d8a404534c03
treed3fc6aff6b52dac8aa945374cfc7f7aa80c9b535
parentcac423a730d3506154744485af1bbc1cd3a1e6a8
spi: atmel_spi: using ip version to check whether has wdrbt

Using IP version to check whether it has wdrbt bit in mode register

Tested in at91sam9x5ek and at91sam9n12ek.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
[fix warning about incompatible parameter]
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/spi/atmel_spi.c
drivers/spi/atmel_spi.h