Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221531
b: refs/heads/master
c: 73e1ac1
h: refs/heads/master
i:
  221529: 2dd2d9a
  221527: 962027c
v: v3
  • Loading branch information
Michael Hennerich authored and Grant Likely committed Oct 22, 2010
1 parent 643d6c1 commit b89e5d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 782a895693a52fd8b288c33bdd7e98357888fc1f
refs/heads/master: 73e1ac16258fe7e55cce4691e32c0b44d4579e08
13 changes: 8 additions & 5 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,12 +1108,15 @@ static int bfin_spi_setup(struct spi_device *spi)
}

if (chip->chip_select_num >= MAX_CTRL_CS) {
ret = gpio_request(chip->cs_gpio, spi->modalias);
if (ret) {
dev_err(&spi->dev, "gpio_request() error\n");
goto pin_error;
/* Only request on first setup */
if (spi_get_ctldata(spi) == NULL) {
ret = gpio_request(chip->cs_gpio, spi->modalias);
if (ret) {
dev_err(&spi->dev, "gpio_request() error\n");
goto pin_error;
}
gpio_direction_output(chip->cs_gpio, 1);
}
gpio_direction_output(chip->cs_gpio, 1);
}

dev_dbg(&spi->dev, "setup spi chip %s, width is %d, dma is %d\n",
Expand Down

0 comments on commit b89e5d9

Please sign in to comment.