ata: sata_dwc_460ex: get rid of global data
authorMans Rullgard <mans@mansr.com>
Tue, 26 Apr 2016 09:03:12 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:19 +0000 (12:29 -0400)
commit2d20da00c324b9a4dd1c4ab9429a6376e7f4b735
treef3d9edf8f016f136ce8e1631e1b696ec89c57db5
parent0f48debdb90601ec37cdcb81f796ca120aae60f4
ata: sata_dwc_460ex: get rid of global data

This moves all global data into the driver private struct, thus
permitting multiple devices of this type to be used.

The core_scr_read/write() functions are replaced with equivalent
calls to the existing sata_dwc_scr_read/write().

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/sata_dwc_460ex.c