diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-22 02:38:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 19:31:49 -0500 |
commit | a3dc3c9eb0a7bcf17604ee444c48b94e2591812d (patch) | |
tree | 8968e8592deceaa60f40b26a316235ce9eb4ed6a /drivers/misc/ad525x_dpot-spi.c | |
parent | a64fe2ed76614d37abb6966a67f4f39d10efba3c (diff) |
MISC: convert drivers/misc/* to use module_spi_driver()
This patch converts the drivers in drivers/misc/* to use the
module_spi_driver() macro which makes the code smaller and a bit
simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Daniel Mack <zonque@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/ad525x_dpot-spi.c')
-rw-r--r-- | drivers/misc/ad525x_dpot-spi.c | 12 |
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 | ||
138 | static int __init ad_dpot_spi_init(void) | 138 | module_spi_driver(ad_dpot_spi_driver); |
139 | { | ||
140 | return spi_register_driver(&ad_dpot_spi_driver); | ||
141 | } | ||
142 | module_init(ad_dpot_spi_init); | ||
143 | |||
144 | static void __exit ad_dpot_spi_exit(void) | ||
145 | { | ||
146 | spi_unregister_driver(&ad_dpot_spi_driver); | ||
147 | } | ||
148 | module_exit(ad_dpot_spi_exit); | ||
149 | 139 | ||
150 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 140 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
151 | MODULE_DESCRIPTION("digital potentiometer SPI bus driver"); | 141 | MODULE_DESCRIPTION("digital potentiometer SPI bus driver"); |