[PATCH 35/35] sgiwd93: use dev_get_platdata()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux