From: Uwe Kleine-König Date: Mon, 21 May 2012 19:57:39 +0000 (+0200) Subject: spi/spi-omap2-mcspi: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=956e002f892631ea4eac0c900c15c1c043eb8628;p=karo-tx-linux.git spi/spi-omap2-mcspi: add a const qualifier This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/spi/spi-omap2-mcspi.c: In function 'omap2_mcspi_probe': drivers/spi/spi-omap2-mcspi.c:1118: warning: assignment discards qualifiers from pointer target type Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 0c73dd4f43a0..345576980a6e 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c @@ -1087,7 +1087,7 @@ MODULE_DEVICE_TABLE(of, omap_mcspi_of_match); static int __devinit omap2_mcspi_probe(struct platform_device *pdev) { struct spi_master *master; - struct omap2_mcspi_platform_config *pdata; + const struct omap2_mcspi_platform_config *pdata; struct omap2_mcspi *mcspi; struct resource *r; int status = 0, i;