aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ad525x_dpot-spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/ad525x_dpot-spi.c')
-rw-r--r--drivers/misc/ad525x_dpot-spi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/misc/ad525x_dpot-spi.c b/drivers/misc/ad525x_dpot-spi.c
index 822749e41fea..f62317540d00 100644
--- a/drivers/misc/ad525x_dpot-spi.c
+++ b/drivers/misc/ad525x_dpot-spi.c
@@ -135,17 +135,7 @@ static struct spi_driver ad_dpot_spi_driver = {
135 .id_table = ad_dpot_spi_id, 135 .id_table = ad_dpot_spi_id,
136}; 136};
137 137
138static int __init ad_dpot_spi_init(void) 138module_spi_driver(ad_dpot_spi_driver);
139{
140 return spi_register_driver(&ad_dpot_spi_driver);
141}
142module_init(ad_dpot_spi_init);
143
144static void __exit ad_dpot_spi_exit(void)
145{
146 spi_unregister_driver(&ad_dpot_spi_driver);
147}
148module_exit(ad_dpot_spi_exit);
149 139
150MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 140MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
151MODULE_DESCRIPTION("digital potentiometer SPI bus driver"); 141MODULE_DESCRIPTION("digital potentiometer SPI bus driver");