ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
authorMans Rullgard <mans@mansr.com>
Tue, 26 Apr 2016 09:03:10 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:19 +0000 (12:29 -0400)
commit50b433753df69262ed1c098328f692e882a31001
tree560a31574c694d1cfa747967ff12ed731a71665a
parent077028ecc99dc66acb3c89e33cc15c69d2edf8cb
ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

Currently this driver only works with a DesignWare DMA engine which it
registers manually using the second "reg" address range and interrupt
number from the DT node.

This patch makes the driver instead use the "dmas" property if present,
otherwise optionally falling back on the old way so existing device
trees can continue to work.

With this change, there is no longer any reason to depend on the 460EX
machine type so drop that from Kconfig.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/Kconfig
drivers/ata/sata_dwc_460ex.c