Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256730
b: refs/heads/master
c: 1bb6f9b
h: refs/heads/master
v: v3
  • Loading branch information
Peter Korsgaard authored and Grant Likely committed Jul 15, 2011
1 parent bf2e93d commit 5a1f47b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 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: eb5064db408eaffa332f93ddcc19c0b653849093
refs/heads/master: 1bb6f9b042eb1428ba927d2e851a00df6308877a
19 changes: 0 additions & 19 deletions trunk/drivers/gpio/gpio-mcp23s08.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,6 @@ static int mcp23s08_probe(struct spi_device *spi)
* handled here...
*/

if (pdata->setup) {
status = pdata->setup(spi,
pdata->base, data->ngpio,
pdata->context);
if (status < 0)
dev_dbg(&spi->dev, "setup --> %d\n", status);
}

return 0;

fail:
Expand All @@ -459,20 +451,9 @@ static int mcp23s08_probe(struct spi_device *spi)
static int mcp23s08_remove(struct spi_device *spi)
{
struct mcp23s08_driver_data *data = spi_get_drvdata(spi);
struct mcp23s08_platform_data *pdata = spi->dev.platform_data;
unsigned addr;
int status = 0;

if (pdata->teardown) {
status = pdata->teardown(spi,
pdata->base, data->ngpio,
pdata->context);
if (status < 0) {
dev_err(&spi->dev, "%s --> %d\n", "teardown", status);
return status;
}
}

for (addr = 0; addr < ARRAY_SIZE(data->mcp); addr++) {
int tmp;

Expand Down
9 changes: 0 additions & 9 deletions trunk/include/linux/spi/mcp23s08.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,4 @@ struct mcp23s08_platform_data {
* base to base+15 (or base+31 for s17 variant).
*/
unsigned base;

void *context; /* param to setup/teardown */

int (*setup)(struct spi_device *spi,
int gpio, unsigned ngpio,
void *context);
int (*teardown)(struct spi_device *spi,
int gpio, unsigned ngpio,
void *context);
};

0 comments on commit 5a1f47b

Please sign in to comment.