spi/orion: Use module_platform_driver()
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 4 Feb 2013 12:26:26 +0000 (09:26 -0300)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 14:44:14 +0000 (14:44 +0000)
commit41ab724aac00cae42e649496c2567e9ef45dd753
tree0e181cbc48204261ac50734418ac6cddac99e115
parentc0fde3ba0e03af30f9fa9cdf180442189b3f7e9c
spi/orion: Use module_platform_driver()

This patch reduces and simplifies initalization code by
using module_platform_driver().
With this change it's necessary to remove the __init annotation
to avoid section mismatch warnings.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-orion.c