mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mcp23s08: get rid of setup/teardown callbacks
There's no in-tree users, and bus notifiers are more generic anyway. Signed-off-by: Peter Korsgaard <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
eb5064db40
commit
1bb6f9b042
2 changed files with 0 additions and 28 deletions
|
|
@ -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:
|
||||
|
|
@ -459,20 +451,9 @@ fail:
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue