[U-Boot] [PATCH] spi: davinci: Remove duplicate code to set bus and cs for slave

Jagan Teki jagannadh.teki at gmail.com
Tue Feb 17 09:47:34 CET 2015


On 13 January 2015 at 06:31, Axel Lin <axel.lin at ingics.com> wrote:
> It's done in spi_alloc_slave().
>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>
> ---
>  drivers/spi/davinci_spi.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
> index 0ec5b9d..bf18362 100644
> --- a/drivers/spi/davinci_spi.c
> +++ b/drivers/spi/davinci_spi.c
> @@ -32,9 +32,6 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
>         if (!ds)
>                 return NULL;
>
> -       ds->slave.bus = bus;
> -       ds->slave.cs = cs;
> -
>         switch (bus) {
>         case SPI0_BUS:
>                 ds->regs = (struct davinci_spi_regs *)SPI0_BASE;
> --
> 1.9.1
>
>
>

Applied to u-boot-spi/master

thanks!
-- 
Jagan.


More information about the U-Boot mailing list