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/pata_ixp4xx_cf.c | |
parent | e8038ebbd51df65bf5f4728c190397041a42e903 (diff) | |
download | op-kernel-dev-61b8c345aa8c50c6a99a90560a107d02124f0293.zip op-kernel-dev-61b8c345aa8c50c6a99a90560a107d02124f0293.tar.gz |
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_ixp4xx_cf.c')
-rw-r--r-- | drivers/ata/pata_ixp4xx_cf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index dcc6b24..1ec53f8 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c @@ -48,7 +48,7 @@ static unsigned int ixp4xx_mmio_data_xfer(struct ata_device *dev, u16 *buf16 = (u16 *) buf; struct ata_port *ap = dev->link->ap; void __iomem *mmio = ap->ioaddr.data_addr; - struct ixp4xx_pata_data *data = ap->host->dev->platform_data; + struct ixp4xx_pata_data *data = dev_get_platdata(ap->host->dev); /* set the expansion bus in 16bit mode and restore * 8 bit mode after the transaction. @@ -143,7 +143,7 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) struct resource *cs0, *cs1; struct ata_host *host; struct ata_port *ap; - struct ixp4xx_pata_data *data = pdev->dev.platform_data; + struct ixp4xx_pata_data *data = dev_get_platdata(&pdev->dev); cs0 = platform_get_resource(pdev, IORESOURCE_MEM, 0); cs1 = platform_get_resource(pdev, IORESOURCE_MEM, 1); |