aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index db998d84cd40..2a45aec4ff29 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -13,7 +13,6 @@
13 13
14#ifdef CONFIG_SPARC 14#ifdef CONFIG_SPARC
15#include <asm/prom.h> 15#include <asm/prom.h>
16#include <asm/pbm.h>
17#endif 16#endif
18 17
19/* XXX(hch): this is ugly, but we don't want to pull in exioctl.h */ 18/* XXX(hch): this is ugly, but we don't want to pull in exioctl.h */
@@ -1397,9 +1396,8 @@ static void qla2xxx_nvram_wwn_from_ofw(scsi_qla_host_t *ha, nvram_t *nv)
1397{ 1396{
1398#ifdef CONFIG_SPARC 1397#ifdef CONFIG_SPARC
1399 struct pci_dev *pdev = ha->pdev; 1398 struct pci_dev *pdev = ha->pdev;
1400 struct pcidev_cookie *pcp = pdev->sysdata; 1399 struct device_node *dp = pci_device_to_OF_node(pdev);
1401 struct device_node *dp = pcp->prom_node; 1400 const u8 *val;
1402 u8 *val;
1403 int len; 1401 int len;
1404 1402
1405 val = of_get_property(dp, "port-wwn", &len); 1403 val = of_get_property(dp, "port-wwn", &len);
@@ -3370,9 +3368,8 @@ static void qla24xx_nvram_wwn_from_ofw(scsi_qla_host_t *ha, struct nvram_24xx *n
3370{ 3368{
3371#ifdef CONFIG_SPARC 3369#ifdef CONFIG_SPARC
3372 struct pci_dev *pdev = ha->pdev; 3370 struct pci_dev *pdev = ha->pdev;
3373 struct pcidev_cookie *pcp = pdev->sysdata; 3371 struct device_node *dp = pci_device_to_OF_node(pdev);
3374 struct device_node *dp = pcp->prom_node; 3372 const u8 *val;
3375 u8 *val;
3376 int len; 3373 int len;
3377 3374
3378 val = of_get_property(dp, "port-wwn", &len); 3375 val = of_get_property(dp, "port-wwn", &len);