Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Jingoo Han <jg1....@samsung.com>
---
 drivers/scsi/sgiwd93.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c
index a464d95..d1243ff 100644
--- a/drivers/scsi/sgiwd93.c
+++ b/drivers/scsi/sgiwd93.c
@@ -228,7 +228,7 @@ static struct scsi_host_template sgiwd93_template = {
 
 static int sgiwd93_probe(struct platform_device *pdev)
 {
-       struct sgiwd93_platform_data *pd = pdev->dev.platform_data;
+       struct sgiwd93_platform_data *pd = dev_get_platdata(&pdev->dev);
        unsigned char *wdregs = pd->wdregs;
        struct hpc3_scsiregs *hregs = pd->hregs;
        struct ip22_hostdata *hdata;
@@ -301,7 +301,7 @@ static int __exit sgiwd93_remove(struct platform_device 
*pdev)
 {
        struct Scsi_Host *host = platform_get_drvdata(pdev);
        struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
-       struct sgiwd93_platform_data *pd = pdev->dev.platform_data;
+       struct sgiwd93_platform_data *pd = dev_get_platdata(&pdev->dev);
 
        scsi_remove_host(host);
        free_irq(pd->irq, host);
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to