aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJean-Hugues Deschenes <jean-hugues.deschenes@octasic.com>2010-01-21 11:55:42 -0500
committerGrant Likely <grant.likely@secretlab.ca>2010-01-21 11:55:42 -0500
commit0a4c1d7d446d3ed6179f907541d180e49b56d4f4 (patch)
tree9910547b48214c443228cef7f134a93ae95e260d /drivers/spi
parentf7b6fd6d1d3833529f1626c761ba7e338586d35e (diff)
spi/dw_spi: mmio code style fixups
Minor code style cleanups following comments by Wolfram Sang Signed-off-by: Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/dw_spi_mmio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/spi/dw_spi_mmio.c b/drivers/spi/dw_spi_mmio.c
index 26c4b49bdd5c..e35b45ac5174 100644
--- a/drivers/spi/dw_spi_mmio.c
+++ b/drivers/spi/dw_spi_mmio.c
@@ -17,8 +17,8 @@
17#define DRIVER_NAME "dw_spi_mmio" 17#define DRIVER_NAME "dw_spi_mmio"
18 18
19struct dw_spi_mmio { 19struct dw_spi_mmio {
20 struct dw_spi dws; 20 struct dw_spi dws;
21 struct clk *clk; 21 struct clk *clk;
22}; 22};
23 23
24static int __devinit dw_spi_mmio_probe(struct platform_device *pdev) 24static int __devinit dw_spi_mmio_probe(struct platform_device *pdev)
@@ -134,13 +134,12 @@ static int __init dw_spi_mmio_init(void)
134{ 134{
135 return platform_driver_probe(&dw_spi_mmio_driver, dw_spi_mmio_probe); 135 return platform_driver_probe(&dw_spi_mmio_driver, dw_spi_mmio_probe);
136} 136}
137module_init(dw_spi_mmio_init);
137 138
138static void __exit dw_spi_mmio_exit(void) 139static void __exit dw_spi_mmio_exit(void)
139{ 140{
140 platform_driver_unregister(&dw_spi_mmio_driver); 141 platform_driver_unregister(&dw_spi_mmio_driver);
141} 142}
142
143module_init(dw_spi_mmio_init);
144module_exit(dw_spi_mmio_exit); 143module_exit(dw_spi_mmio_exit);
145 144
146MODULE_AUTHOR("Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com>"); 145MODULE_AUTHOR("Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com>");