aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ep93xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-ep93xx.c')
-rw-r--r--drivers/spi/spi-ep93xx.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c
index 1cf645479bfe..0a282e5fcc9c 100644
--- a/drivers/spi/spi-ep93xx.c
+++ b/drivers/spi/spi-ep93xx.c
@@ -24,6 +24,7 @@
24#include <linux/dmaengine.h> 24#include <linux/dmaengine.h>
25#include <linux/bitops.h> 25#include <linux/bitops.h>
26#include <linux/interrupt.h> 26#include <linux/interrupt.h>
27#include <linux/module.h>
27#include <linux/platform_device.h> 28#include <linux/platform_device.h>
28#include <linux/workqueue.h> 29#include <linux/workqueue.h>
29#include <linux/sched.h> 30#include <linux/sched.h>
@@ -1025,7 +1026,7 @@ static void ep93xx_spi_release_dma(struct ep93xx_spi *espi)
1025 free_page((unsigned long)espi->zeropage); 1026 free_page((unsigned long)espi->zeropage);
1026} 1027}
1027 1028
1028static int __init ep93xx_spi_probe(struct platform_device *pdev) 1029static int __devinit ep93xx_spi_probe(struct platform_device *pdev)
1029{ 1030{
1030 struct spi_master *master; 1031 struct spi_master *master;
1031 struct ep93xx_spi_info *info; 1032 struct ep93xx_spi_info *info;
@@ -1150,7 +1151,7 @@ fail_release_master:
1150 return error; 1151 return error;
1151} 1152}
1152 1153
1153static int __exit ep93xx_spi_remove(struct platform_device *pdev) 1154static int __devexit ep93xx_spi_remove(struct platform_device *pdev)
1154{ 1155{
1155 struct spi_master *master = platform_get_drvdata(pdev); 1156 struct spi_master *master = platform_get_drvdata(pdev);
1156 struct ep93xx_spi *espi = spi_master_get_devdata(master); 1157 struct ep93xx_spi *espi = spi_master_get_devdata(master);
@@ -1196,20 +1197,10 @@ static struct platform_driver ep93xx_spi_driver = {
1196 .name = "ep93xx-spi", 1197 .name = "ep93xx-spi",
1197 .owner = THIS_MODULE, 1198 .owner = THIS_MODULE,
1198 }, 1199 },
1199 .remove = __exit_p(ep93xx_spi_remove), 1200 .probe = ep93xx_spi_probe,
1201 .remove = __devexit_p(ep93xx_spi_remove),
1200}; 1202};
1201 1203module_platform_driver(ep93xx_spi_driver);
1202static int __init ep93xx_spi_init(void)
1203{
1204 return platform_driver_probe(&ep93xx_spi_driver, ep93xx_spi_probe);
1205}
1206module_init(ep93xx_spi_init);
1207
1208static void __exit ep93xx_spi_exit(void)
1209{
1210 platform_driver_unregister(&ep93xx_spi_driver);
1211}
1212module_exit(ep93xx_spi_exit);
1213 1204
1214MODULE_DESCRIPTION("EP93xx SPI Controller driver"); 1205MODULE_DESCRIPTION("EP93xx SPI Controller driver");
1215MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); 1206MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>");