aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2009-11-13 04:41:16 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-08 20:48:13 -0500
commitd65aea99bd9e1d2e9560c5fff6c512d93c4a78d5 (patch)
tree3982fab77da397ed3d8ad0665abf29fb9e6c4ebc /drivers/spi
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>
Diffstat (limited to 'drivers/spi')
-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 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,
430 master->num_chipselect = 1; 430 master->num_chipselect = 1;
431 master->setup = mpc52xx_spi_setup; 431 master->setup = mpc52xx_spi_setup;
432 master->transfer = mpc52xx_spi_transfer; 432 master->transfer = mpc52xx_spi_transfer;
433 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
434
433 dev_set_drvdata(&op->dev, master); 435 dev_set_drvdata(&op->dev, master);
434 436
435 ms = spi_master_get_devdata(master); 437 ms = spi_master_get_devdata(master);