spi: spi_s3c24xx must initialize num_chipselect
[deliverable/linux.git] / drivers / spi / spi_s3c24xx.c
index 80719ef5436500dd0acd00e7a280c6ee1dcbc7c8..b7476b888197c7872ce24cde39a552f9c74095b4 100644 (file)
@@ -267,6 +267,10 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, hw);
        init_completion(&hw->done);
 
+       /* setup the master state. */
+
+       master->num_chipselect = hw->pdata->num_cs;
+
        /* setup the state for the bitbang driver */
 
        hw->bitbang.master         = hw->master;
This page took 0.023551 seconds and 5 git commands to generate.