aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-04-16 11:58:44 -0400
committerGrant Likely <grant.likely@secretlab.ca>2009-04-16 11:58:44 -0400
commit412401029259b1ad67559cec93bcc7ee4a9551aa (patch)
tree47f9438b4ba548c5ad3ac32ebc967c0bbd728385 /include
parent0882e8dd3aad33eca41696d463bb896e6c8817eb (diff)
powerpc/5200: Bring the legacy fsl_spi_platform_data hooks back
In commit 364fdbc00fbdd409ade63500710123fe323aa164 ("spi_mpc83xx: rework chip selects handling"), I merged activate_cs and deactivate_cs hooks into cs_control, but I overlooked that mpc52xx_psc_spi driver is using these hooks too. And that resulted in the following build failure: CC drivers/spi/mpc52xx_psc_spi.o drivers/spi/mpc52xx_psc_spi.c: In function 'mpc52xx_psc_spi_do_probe': drivers/spi/mpc52xx_psc_spi.c:398: error: 'struct fsl_spi_platform_data' has no member named 'activate_cs' drivers/spi/mpc52xx_psc_spi.c:399: error: 'struct fsl_spi_platform_data' has no member named 'deactivate_cs' make[2]: *** [drivers/spi/mpc52xx_psc_spi.o] Error 1 This patch simply adds the legacy hooks back for 2.6.30, and for 2.6.31 we'll convert the driver to ->cs_control. Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsl_devices.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index f2a78b5e8b55..0cde1806cfab 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -83,6 +83,10 @@ struct fsl_spi_platform_data {
83 u16 max_chipselect; 83 u16 max_chipselect;
84 void (*cs_control)(struct spi_device *spi, bool on); 84 void (*cs_control)(struct spi_device *spi, bool on);
85 u32 sysclk; 85 u32 sysclk;
86
87 /* Legacy hooks, used by mpc52xx_psc_spi driver. */
88 void (*activate_cs)(u8 cs, u8 polarity);
89 void (*deactivate_cs)(u8 cs, u8 polarity);
86}; 90};
87 91
88struct mpc8xx_pcmcia_ops { 92struct mpc8xx_pcmcia_ops {