diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 19 |
1 files changed, 0 insertions, 19 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 | ||