projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46988f
)
spi: davinci: Remove duplicate code to set bus and cs for slave
author
Axel Lin
<axel.lin@ingics.com>
Tue, 13 Jan 2015 01:01:19 +0000
(09:01 +0800)
committer
Jagannadha Sutradharudu Teki
<jagannadh.teki@gmail.com>
Sun, 29 Mar 2015 20:09:20 +0000
(
01:39
+0530)
It's done in spi_alloc_slave().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/davinci_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/davinci_spi.c
b/drivers/spi/davinci_spi.c
index 0ec5b9d85920d4aca224fc91925925d5ca25703a..bf18362baaf81cdb9e37fdc71139f18712d07f33 100644
(file)
--- 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;