dm: at91: Add driver model support for the spi driver
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 28 Oct 2016 06:17:49 +0000 (14:17 +0800)
committerAndreas Bießmann <andreas@biessmann.org>
Fri, 28 Oct 2016 16:37:15 +0000 (18:37 +0200)
commit0eafd4b77615efdd948e698d83be746dcf026a53
treecc9e4ed2d7d1ed2265b784b70eef99cf0b3491b9
parent2992dd833d11cd988125b11ae72bc18e53b0b2ab
dm: at91: Add driver model support for the spi driver

Add driver model support while retaining the existing legacy code.
This allows the driver to support boards that have converted to
driver model as well as those that have not.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
drivers/spi/Kconfig
drivers/spi/atmel_spi.c