diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:16:05 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-30 08:59:24 -0400 |
commit | 61b8c345aa8c50c6a99a90560a107d02124f0293 (patch) | |
tree | 7e7c8cd598333b4f1c7deb817af07af38f1f45be /drivers/ata/sata_mv.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/sata_mv.c')
-rw-r--r-- | drivers/ata/sata_mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 10ea99a0192d..88e08515cf46 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -4058,7 +4058,7 @@ static int mv_platform_probe(struct platform_device *pdev) of_property_read_u32(pdev->dev.of_node, "nr-ports", &n_ports); irq = irq_of_parse_and_map(pdev->dev.of_node, 0); } else { - mv_platform_data = pdev->dev.platform_data; + mv_platform_data = dev_get_platdata(&pdev->dev); n_ports = mv_platform_data->n_ports; irq = platform_get_irq(pdev, 0); } |