]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita06715d1794547a3be3a936c978b979bae5008d5
tree0e181cbc48204261ac50734418ac6cddac99e115
parented95a88f778a08f8d09b7eb82486e7c7d4763dd3
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