s5pc110: compiler warning removed JB18_20100226
authorDonghwa Lee <dh09.lee@samsung.com>
Fri, 26 Feb 2010 08:25:16 +0000 (17:25 +0900)
committerDonghwa Lee <dh09.lee@samsung.com>
Fri, 26 Feb 2010 08:25:16 +0000 (17:25 +0900)
drivers/video/s5p-spi.c

index 4734574..03c8232 100644 (file)
@@ -1,3 +1,4 @@
+#include <common.h>
 #include <asm/arch/gpio.h>
 #include "s5p-spi.h"
 
@@ -32,10 +33,12 @@ static void si_high(struct spi_platform_data *spi)
        gpio_set_value(spi->si_bank, spi->si_num, 1);
 }
 
+/*
 static char so_read(struct spi_platform_data *spi)
 {
        return gpio_get_value(spi->so_bank, spi->so_num);
 }
+*/
 
 void spi_write_byte(struct spi_platform_data *spi, unsigned char address, unsigned char command)
 {
@@ -53,8 +56,7 @@ void spi_write_byte(struct spi_platform_data *spi, unsigned char address, unsign
        cs_low(spi);
        udelay(DELAY);
 
-       for (j = PACKET_LEN; j >= 0; j--)
-       {
+       for (j = PACKET_LEN; j >= 0; j--) {
                clk_low(spi);
 
                /* data high or low */
@@ -92,8 +94,7 @@ unsigned char spi_read_byte(struct spi_platform_data *spi, unsigned char select,
        clk_low(spi);
        udelay(DELAY);
 
-       for (j = PACKET_LEN + 8; j >= 0; j--)
-       {
+       for (j = PACKET_LEN + 8; j >= 0; j--) {
 
                if (j > 7) {
                        clk_low(spi);