diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:16:05 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-30 08:59:24 -0400 |
commit | 61b8c345aa8c50c6a99a90560a107d02124f0293 (patch) | |
tree | 7e7c8cd598333b4f1c7deb817af07af38f1f45be /drivers/ata/pata_octeon_cf.c | |
parent | e8038ebbd51df65bf5f4728c190397041a42e903 (diff) |
ata: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_octeon_cf.c')
-rw-r--r-- | drivers/ata/pata_octeon_cf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index e73bef3093d2..c51bbb9ea8e8 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c | |||
@@ -1037,7 +1037,7 @@ static void octeon_cf_shutdown(struct device *dev) | |||
1037 | union cvmx_mio_boot_dma_cfgx dma_cfg; | 1037 | union cvmx_mio_boot_dma_cfgx dma_cfg; |
1038 | union cvmx_mio_boot_dma_intx dma_int; | 1038 | union cvmx_mio_boot_dma_intx dma_int; |
1039 | 1039 | ||
1040 | struct octeon_cf_port *cf_port = dev->platform_data; | 1040 | struct octeon_cf_port *cf_port = dev_get_platdata(dev); |
1041 | 1041 | ||
1042 | if (cf_port->dma_base) { | 1042 | if (cf_port->dma_base) { |
1043 | /* Stop and clear the dma engine. */ | 1043 | /* Stop and clear the dma engine. */ |