sgiwd93: use dev_get_platdata()
PATCH 35/35 sgiwd93: 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 <[email protected]>
--- drivers/scsi/sgiwd93.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/sgiwd93.c +2 -2
@@ -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);
Signature · 1 line
1.7.10.4