diff mbox

[1/5] mfd/ab8500: Setup SPI transfer for 24 bits

Message ID 1284135579-13578-2-git-send-email-wellsk40@gmail.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

wellsk40@gmail.com Sept. 10, 2010, 4:19 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mfd/ab8500-spi.c b/drivers/mfd/ab8500-spi.c
index e1c8b62..01b6d58 100644
--- a/drivers/mfd/ab8500-spi.c
+++ b/drivers/mfd/ab8500-spi.c
@@ -83,6 +83,11 @@  static int __devinit ab8500_spi_probe(struct spi_device *spi)
 	struct ab8500 *ab8500;
 	int ret;
 
+	spi->bits_per_word = 24;
+	ret = spi_setup(spi);
+	if (ret < 0)
+		return ret;
+
 	ab8500 = kzalloc(sizeof *ab8500, GFP_KERNEL);
 	if (!ab8500)
 		return -ENOMEM;