diff options
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 19 | ||||
-rw-r--r-- | include/linux/spi/mcp23s08.h | 9 |
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index da3e04f0909b..ef61234c0e03 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c | |||
@@ -432,14 +432,6 @@ static int mcp23s08_probe(struct spi_device *spi) | |||
432 | * handled here... | 432 | * handled here... |
433 | */ | 433 | */ |
434 | 434 | ||
435 | if (pdata->setup) { | ||
436 | status = pdata->setup(spi, | ||
437 | pdata->base, data->ngpio, | ||
438 | pdata->context); | ||
439 | if (status < 0) | ||
440 | dev_dbg(&spi->dev, "setup --> %d\n", status); | ||
441 | } | ||
442 | |||
443 | return 0; | 435 | return 0; |
444 | 436 | ||
445 | fail: | 437 | fail: |
@@ -459,20 +451,9 @@ fail: | |||
459 | static int mcp23s08_remove(struct spi_device *spi) | 451 | static int mcp23s08_remove(struct spi_device *spi) |
460 | { | 452 | { |
461 | struct mcp23s08_driver_data *data = spi_get_drvdata(spi); | 453 | struct mcp23s08_driver_data *data = spi_get_drvdata(spi); |
462 | struct mcp23s08_platform_data *pdata = spi->dev.platform_data; | ||
463 | unsigned addr; | 454 | unsigned addr; |
464 | int status = 0; | 455 | int status = 0; |
465 | 456 | ||
466 | if (pdata->teardown) { | ||
467 | status = pdata->teardown(spi, | ||
468 | pdata->base, data->ngpio, | ||
469 | pdata->context); | ||
470 | if (status < 0) { | ||
471 | dev_err(&spi->dev, "%s --> %d\n", "teardown", status); | ||
472 | return status; | ||
473 | } | ||
474 | } | ||
475 | |||
476 | for (addr = 0; addr < ARRAY_SIZE(data->mcp); addr++) { | 457 | for (addr = 0; addr < ARRAY_SIZE(data->mcp); addr++) { |
477 | int tmp; | 458 | int tmp; |
478 | 459 | ||
diff --git a/include/linux/spi/mcp23s08.h b/include/linux/spi/mcp23s08.h index c42cff8ca191..2d676d5aaa89 100644 --- a/include/linux/spi/mcp23s08.h +++ b/include/linux/spi/mcp23s08.h | |||
@@ -22,13 +22,4 @@ struct mcp23s08_platform_data { | |||
22 | * base to base+15 (or base+31 for s17 variant). | 22 | * base to base+15 (or base+31 for s17 variant). |
23 | */ | 23 | */ |
24 | unsigned base; | 24 | unsigned base; |
25 | |||
26 | void *context; /* param to setup/teardown */ | ||
27 | |||
28 | int (*setup)(struct spi_device *spi, | ||
29 | int gpio, unsigned ngpio, | ||
30 | void *context); | ||
31 | int (*teardown)(struct spi_device *spi, | ||
32 | int gpio, unsigned ngpio, | ||
33 | void *context); | ||
34 | }; | 25 | }; |