]> Pileus Git - ~andy/linux/blobdiff - drivers/spi/spi-fsl-spi.c
Merge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile...
[~andy/linux] / drivers / spi / spi-fsl-spi.c
index 5f748c0d96bdf5444e85408fa21b515b5873639f..6a62934ca74c13b36a01a8e06bbd28c7c275807e 100644 (file)
@@ -933,7 +933,7 @@ err:
 
 static void fsl_spi_cs_control(struct spi_device *spi, bool on)
 {
-       struct device *dev = spi->dev.parent;
+       struct device *dev = spi->dev.parent->parent;
        struct mpc8xxx_spi_probe_info *pinfo = to_of_pinfo(dev->platform_data);
        u16 cs = spi->chip_select;
        int gpio = pinfo->gpios[cs];