diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2009-11-13 10:41:16 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-08 18:48:13 -0700 |
commit | d65aea99bd9e1d2e9560c5fff6c512d93c4a78d5 (patch) | |
tree | 3982fab77da397ed3d8ad0665abf29fb9e6c4ebc | |
parent | 4a495b1c43ed2e1495dad19987100ccd6c1575d7 (diff) | |
download | linux-d65aea99bd9e1d2e9560c5fff6c512d93c4a78d5.tar.gz linux-d65aea99bd9e1d2e9560c5fff6c512d93c4a78d5.tar.bz2 linux-d65aea99bd9e1d2e9560c5fff6c512d93c4a78d5.zip |
mpc52xx_spi: add missing mode_bits definition
V2 changes:
* remove CS_HIGH mode
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r-- | drivers/spi/mpc52xx_spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/mpc52xx_spi.c b/drivers/spi/mpc52xx_spi.c index 232225088bc1..64862cfda19e 100644 --- a/drivers/spi/mpc52xx_spi.c +++ b/drivers/spi/mpc52xx_spi.c @@ -430,6 +430,8 @@ static int __devinit mpc52xx_spi_probe(struct of_device *op, master->num_chipselect = 1; master->setup = mpc52xx_spi_setup; master->transfer = mpc52xx_spi_transfer; + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; + dev_set_drvdata(&op->dev, master); ms = spi_master_get_devdata(master); |