drivers: spi: Fix compiler messages in I/O drivers
Ashwini Ghuge [Mon, 12 Dec 2011 10:20:54 +0000 (15:20 +0530)]
Fixed warning message

Bug ID: 912669

Change-Id: I3090c35a5d0725102c101b10a99914510a272fa4
Reviewed-on: http://git-master/r/69444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

drivers/spi/spi_slave_tegra.c

index 1419814..3153ad5 100644 (file)
@@ -664,13 +664,6 @@ static void spi_tegra_start_transfer(struct spi_device *spi,
        unsigned long command;
        unsigned long command2;
 
-       unsigned int cs_pol_bit[] = {
-                       SLINK_CS_POLARITY,
-                       SLINK_CS_POLARITY1,
-                       SLINK_CS_POLARITY2,
-                       SLINK_CS_POLARITY3,
-       };
-
        bits_per_word = t->bits_per_word ? t->bits_per_word :
                                        spi->bits_per_word;