summaryrefslogtreecommitdiff
path: root/arch/arm/mach-u300
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-05-20 22:22:04 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-06-17 13:54:34 +0200
commitbe2885a569f43fa6c44e2a5e1795583ae9941c27 (patch)
tree9d2d079f96825bcd0e8b6e60badda9695d2af4ba /arch/arm/mach-u300
parentbfbdd91029a36538e43cd32478d405278f66bbb9 (diff)
ARM: u300 use module_spi_driver to register driver
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-u300')
-rw-r--r--arch/arm/mach-u300/dummyspichip.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-u300/dummyspichip.c b/arch/arm/mach-u300/dummyspichip.c
index 52962bf83900..ec0283cf9a32 100644
--- a/arch/arm/mach-u300/dummyspichip.c
+++ b/arch/arm/mach-u300/dummyspichip.c
@@ -278,19 +278,7 @@ static struct spi_driver pl022_dummy_driver = {
.remove = pl022_dummy_remove,
};
-static int __init pl022_init_dummy(void)
-{
- return spi_register_driver(&pl022_dummy_driver);
-}
-
-static void __exit pl022_exit_dummy(void)
-{
- spi_unregister_driver(&pl022_dummy_driver);
-}
-
-module_init(pl022_init_dummy);
-module_exit(pl022_exit_dummy);
-
+module_spi_driver(pl022_dummy_driver);
MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
MODULE_DESCRIPTION("PL022 SSP/SPI DUMMY Linux driver");
MODULE_LICENSE("GPL");