summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/mchp48l640.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/mchp48l640.c')
-rw-r--r--drivers/mtd/devices/mchp48l640.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c
index 231a10790196..a3fd426df74b 100644
--- a/drivers/mtd/devices/mchp48l640.c
+++ b/drivers/mtd/devices/mchp48l640.c
@@ -341,13 +341,11 @@ static int mchp48l640_probe(struct spi_device *spi)
return 0;
}
-static int mchp48l640_remove(struct spi_device *spi)
+static void mchp48l640_remove(struct spi_device *spi)
{
struct mchp48l640_flash *flash = spi_get_drvdata(spi);
WARN_ON(mtd_device_unregister(&flash->mtd));
-
- return 0;
}
static const struct of_device_id mchp48l640_of_table[] = {