]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: spi-s3c64xx: Use module_platform_driver()
authorLukasz Czerwinski <l.czerwinski@samsung.com>
Mon, 9 Sep 2013 14:09:25 +0000 (16:09 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:24:09 +0000 (00:24 +0100)
commit50c959fc3366693174cdf3f1c82d0c01bbee926f
tree4d3cfc40b030e1a83fab9cb4f6ac282a7764179e
parent272b98c6455f00884f0350f775c5342358ebb73f
spi: spi-s3c64xx: Use module_platform_driver()

subsys_init_call() initializes driver too early.
It's preventing to move DMA channel allocation at the begining
(driver probe).

This patch reduces and simplifies initalization code by
using module_platform_driver() macro.
It's also efficiently delaying driver startup.

Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c