summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/hmc5843_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/magnetometer/hmc5843_spi.c')
-rw-r--r--drivers/iio/magnetometer/hmc5843_spi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/magnetometer/hmc5843_spi.c b/drivers/iio/magnetometer/hmc5843_spi.c
index 89cf59a62c28..a99dd9b33e95 100644
--- a/drivers/iio/magnetometer/hmc5843_spi.c
+++ b/drivers/iio/magnetometer/hmc5843_spi.c
@@ -74,11 +74,9 @@ static int hmc5843_spi_probe(struct spi_device *spi)
id->driver_data, id->name);
}
-static int hmc5843_spi_remove(struct spi_device *spi)
+static void hmc5843_spi_remove(struct spi_device *spi)
{
hmc5843_common_remove(&spi->dev);
-
- return 0;
}
static const struct spi_device_id hmc5843_id[] = {