From: Luotao Fu Date: Fri, 13 Nov 2009 09:41:16 +0000 (+0100) Subject: mpc52xx_spi: add missing mode_bits definition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d65aea99bd9e1d2e9560c5fff6c512d93c4a78d5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mpc52xx_spi: add missing mode_bits definition V2 changes: * remove CS_HIGH mode Signed-off-by: Luotao Fu Acked-by: Wolfram Sang Signed-off-by: Grant Likely --- 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);