diff options
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>"); |