aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-10-05 06:19:12 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-15 20:51:46 +0200
commit5fe9f6ccbb7bc82a92e5d32b3eb68eebb3ea4a93 (patch)
tree50fb5c1733500654176ab1a9f9354eed677f2a81 /drivers/misc
parentw1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). (diff)
downloadlinux-dev-5fe9f6ccbb7bc82a92e5d32b3eb68eebb3ea4a93.tar.xz
linux-dev-5fe9f6ccbb7bc82a92e5d32b3eb68eebb3ea4a93.zip
eeprom: at25: remove unneeded 'at25_remove'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/eeprom/at25.c: In function 'at25_remove': drivers/misc/eeprom/at25.c:384:20: warning: variable 'at25' set but not used [-Wunused-but-set-variable] Since commit 96d08fb43e30 ("eeprom: at25: use devm_nvmem_register()"), at25_remove is do nothing, so can be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/eeprom/at25.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c
index d874df72853f..99de6939cd5a 100644
--- a/drivers/misc/eeprom/at25.c
+++ b/drivers/misc/eeprom/at25.c
@@ -379,15 +379,6 @@ static int at25_probe(struct spi_device *spi)
return 0;
}
-static int at25_remove(struct spi_device *spi)
-{
- struct at25_data *at25;
-
- at25 = spi_get_drvdata(spi);
-
- return 0;
-}
-
/*-------------------------------------------------------------------------*/
static const struct of_device_id at25_of_match[] = {
@@ -402,7 +393,6 @@ static struct spi_driver at25_driver = {
.of_match_table = at25_of_match,
},
.probe = at25_probe,
- .remove = at25_remove,
};
module_spi_driver(at25_driver);