diff options
Diffstat (limited to 'drivers/spi/spi-atmel.c')
-rw-r--r-- | drivers/spi/spi-atmel.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 82dee9a6c0de..16d6a839c7fa 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include <asm/io.h> | 23 | #include <asm/io.h> |
24 | #include <mach/board.h> | 24 | #include <mach/board.h> |
25 | #include <mach/gpio.h> | 25 | #include <asm/gpio.h> |
26 | #include <mach/cpu.h> | 26 | #include <mach/cpu.h> |
27 | 27 | ||
28 | /* SPI register offsets */ | 28 | /* SPI register offsets */ |
@@ -907,7 +907,7 @@ static void atmel_spi_cleanup(struct spi_device *spi) | |||
907 | 907 | ||
908 | /*-------------------------------------------------------------------------*/ | 908 | /*-------------------------------------------------------------------------*/ |
909 | 909 | ||
910 | static int __init atmel_spi_probe(struct platform_device *pdev) | 910 | static int __devinit atmel_spi_probe(struct platform_device *pdev) |
911 | { | 911 | { |
912 | struct resource *regs; | 912 | struct resource *regs; |
913 | int irq; | 913 | int irq; |
@@ -1003,7 +1003,7 @@ out_free: | |||
1003 | return ret; | 1003 | return ret; |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | static int __exit atmel_spi_remove(struct platform_device *pdev) | 1006 | static int __devexit atmel_spi_remove(struct platform_device *pdev) |
1007 | { | 1007 | { |
1008 | struct spi_master *master = platform_get_drvdata(pdev); | 1008 | struct spi_master *master = platform_get_drvdata(pdev); |
1009 | struct atmel_spi *as = spi_master_get_devdata(master); | 1009 | struct atmel_spi *as = spi_master_get_devdata(master); |
@@ -1072,20 +1072,10 @@ static struct platform_driver atmel_spi_driver = { | |||
1072 | }, | 1072 | }, |
1073 | .suspend = atmel_spi_suspend, | 1073 | .suspend = atmel_spi_suspend, |
1074 | .resume = atmel_spi_resume, | 1074 | .resume = atmel_spi_resume, |
1075 | .probe = atmel_spi_probe, | ||
1075 | .remove = __exit_p(atmel_spi_remove), | 1076 | .remove = __exit_p(atmel_spi_remove), |
1076 | }; | 1077 | }; |
1077 | 1078 | module_platform_driver(atmel_spi_driver); | |
1078 | static int __init atmel_spi_init(void) | ||
1079 | { | ||
1080 | return platform_driver_probe(&atmel_spi_driver, atmel_spi_probe); | ||
1081 | } | ||
1082 | module_init(atmel_spi_init); | ||
1083 | |||
1084 | static void __exit atmel_spi_exit(void) | ||
1085 | { | ||
1086 | platform_driver_unregister(&atmel_spi_driver); | ||
1087 | } | ||
1088 | module_exit(atmel_spi_exit); | ||
1089 | 1079 | ||
1090 | MODULE_DESCRIPTION("Atmel AT32/AT91 SPI Controller driver"); | 1080 | MODULE_DESCRIPTION("Atmel AT32/AT91 SPI Controller driver"); |
1091 | MODULE_AUTHOR("Haavard Skinnemoen (Atmel)"); | 1081 | MODULE_AUTHOR("Haavard Skinnemoen (Atmel)"); |