uboot-lantiq: update to v2013.10
[openwrt.git] / package / boot / uboot-lantiq / patches / 0002-sf-consistently-use-debug-for-warning-error-messages.patch
1 From bb7df8c6ff30be3786483767d3afb0e77a69a640 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Sat, 12 Oct 2013 21:21:18 +0200
4 Subject: sf: consistently use debug() for warning/error messages
5
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
8 diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
9 index 5eb8ffe..04356f1 100644
10 --- a/drivers/mtd/spi/sf_probe.c
11 +++ b/drivers/mtd/spi/sf_probe.c
12 @@ -176,8 +176,8 @@ static struct spi_flash *spi_flash_validate_params(struct spi_slave *spi,
13         }
14  
15         if (i == ARRAY_SIZE(spi_flash_params_table)) {
16 -               printf("SF: Unsupported flash IDs: ");
17 -               printf("manuf %02x, jedec %04x, ext_jedec %04x\n",
18 +               debug("SF: Unsupported flash IDs: ");
19 +               debug("manuf %02x, jedec %04x, ext_jedec %04x\n",
20                        idcode[0], jedec, ext_jedec);
21                 return NULL;
22         }
23 @@ -296,7 +296,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
24         /* Setup spi_slave */
25         spi = spi_setup_slave(bus, cs, max_hz, spi_mode);
26         if (!spi) {
27 -               printf("SF: Failed to set up slave\n");
28 +               debug("SF: Failed to set up slave\n");
29                 return NULL;
30         }
31  
32 @@ -310,7 +310,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
33         /* Read the ID codes */
34         ret = spi_flash_cmd(spi, CMD_READ_ID, idcode, sizeof(idcode));
35         if (ret) {
36 -               printf("SF: Failed to get idcodes\n");
37 +               debug("SF: Failed to get idcodes\n");
38                 goto err_read_id;
39         }
40  
41 @@ -341,8 +341,8 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
42  #endif
43  #ifndef CONFIG_SPI_FLASH_BAR
44         if (flash->size > SPI_FLASH_16MB_BOUN) {
45 -               puts("SF: Warning - Only lower 16MiB accessible,");
46 -               puts(" Full access #define CONFIG_SPI_FLASH_BAR\n");
47 +               debug("SF: Warning - Only lower 16MiB accessible,");
48 +               debug(" Full access #define CONFIG_SPI_FLASH_BAR\n");
49         }
50  #endif
51  
52 -- 
53 1.8.3.2
54