summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2009-11-13 10:41:16 +0100
committerGrant Likely <grant.likely@secretlab.ca>2009-12-08 18:48:13 -0700
commitd65aea99bd9e1d2e9560c5fff6c512d93c4a78d5 (patch)
tree3982fab77da397ed3d8ad0665abf29fb9e6c4ebc
parent4a495b1c43ed2e1495dad19987100ccd6c1575d7 (diff)
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/mpc52xx_spi.c b/drivers/spi/mpc52xx_spi.c
index 232225088bc..64862cfda19 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);