diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 11 | ||||
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 3 | ||||
-rw-r--r-- | drivers/video/aty/mach64_cursor.c | 1 |
3 files changed, 6 insertions, 9 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); |
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index ea67dd902d4e..8d3455da663a 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -80,8 +80,9 @@ | |||
80 | #include "../macmodes.h" | 80 | #include "../macmodes.h" |
81 | #endif | 81 | #endif |
82 | #ifdef __sparc__ | 82 | #ifdef __sparc__ |
83 | #include <asm/pbm.h> | ||
84 | #include <asm/fbio.h> | 83 | #include <asm/fbio.h> |
84 | #include <asm/oplib.h> | ||
85 | #include <asm/prom.h> | ||
85 | #endif | 86 | #endif |
86 | 87 | ||
87 | #ifdef CONFIG_ADB_PMU | 88 | #ifdef CONFIG_ADB_PMU |
diff --git a/drivers/video/aty/mach64_cursor.c b/drivers/video/aty/mach64_cursor.c index 2a7f381c330f..fe2c6ad01a8d 100644 --- a/drivers/video/aty/mach64_cursor.c +++ b/drivers/video/aty/mach64_cursor.c | |||
@@ -11,7 +11,6 @@ | |||
11 | #include <asm/uaccess.h> | 11 | #include <asm/uaccess.h> |
12 | 12 | ||
13 | #ifdef __sparc__ | 13 | #ifdef __sparc__ |
14 | #include <asm/pbm.h> | ||
15 | #include <asm/fbio.h> | 14 | #include <asm/fbio.h> |
16 | #endif | 15 | #endif |
17 | 16 | ||