summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adt7310.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adt7310.c')
-rw-r--r--drivers/hwmon/adt7310.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7310.c b/drivers/hwmon/adt7310.c
index 9fad01191620..c40cac16af68 100644
--- a/drivers/hwmon/adt7310.c
+++ b/drivers/hwmon/adt7310.c
@@ -90,7 +90,8 @@ static int adt7310_spi_probe(struct spi_device *spi)
static int adt7310_spi_remove(struct spi_device *spi)
{
- return adt7x10_remove(&spi->dev, spi->irq);
+ adt7x10_remove(&spi->dev, spi->irq);
+ return 0;
}
static const struct spi_device_id adt7310_id[] = {