diff options
author | Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com> | 2010-01-21 11:55:42 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-01-21 11:55:42 -0500 |
commit | 0a4c1d7d446d3ed6179f907541d180e49b56d4f4 (patch) | |
tree | 9910547b48214c443228cef7f134a93ae95e260d /drivers/spi | |
parent | f7b6fd6d1d3833529f1626c761ba7e338586d35e (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.c | 7 |
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 | ||
19 | struct dw_spi_mmio { | 19 | struct 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 | ||
24 | static int __devinit dw_spi_mmio_probe(struct platform_device *pdev) | 24 | static 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 | } |
137 | module_init(dw_spi_mmio_init); | ||
137 | 138 | ||
138 | static void __exit dw_spi_mmio_exit(void) | 139 | static 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 | |||
143 | module_init(dw_spi_mmio_init); | ||
144 | module_exit(dw_spi_mmio_exit); | 143 | module_exit(dw_spi_mmio_exit); |
145 | 144 | ||
146 | MODULE_AUTHOR("Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com>"); | 145 | MODULE_AUTHOR("Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com>"); |