summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorGerard Snitselaar <dev@snitselaar.org>2012-07-11 06:05:00 +0200
committerJonathan Cameron <jic23@kernel.org>2012-07-12 21:00:08 +0200
commit21fa54e4017fb0ed2107282e6057528ca59b8942 (patch)
treee17e5ce8407bf9dc605cadd054e6450f3dd6c7a3 /drivers/iio/dac
parentiio: ad5064: Move bus write callbacks to #if protected sections (diff)
downloadlinux-21fa54e4017fb0ed2107282e6057528ca59b8942.tar.xz
linux-21fa54e4017fb0ed2107282e6057528ca59b8942.zip
iio: dac: ad5064: fix section mismatch in ad5064_init() in linux-next
ad5064_init() calls ad5064_spi_unregister_driver() which is annotated __exit. Signed-off-by: Gerard Snitselaar <dev@snitselaar.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/ad5064.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5064.c b/drivers/iio/dac/ad5064.c
index de2c3687b3ee..eb281a2c295b 100644
--- a/drivers/iio/dac/ad5064.c
+++ b/drivers/iio/dac/ad5064.c
@@ -572,7 +572,7 @@ static int __init ad5064_spi_register_driver(void)
return spi_register_driver(&ad5064_spi_driver);
}
-static void __exit ad5064_spi_unregister_driver(void)
+static void ad5064_spi_unregister_driver(void)
{
spi_unregister_driver(&ad5064_spi_driver);
}