aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2012-08-19 17:44:01 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-05 01:19:35 -0400
commitd3dbeef657fdc9e870e0b01f811bbb906af052f8 (patch)
tree85f19e5f69ac6ae8d71bc8d9d6bd6d6ef70a4395 /drivers/scsi
parentd1cfc0ce5d3196ccd88b9d868bb7cbcab61e0a31 (diff)
powerpc: Rename 64-bit PVR constants to PVR_foo
We have an old FIXME in reg.h which points out that we should standardise on PVR_foo for our PVR #defines. Currently we use PVR_ on 32-bit and PV_ on 64-bit. So do that rename and remove the FIXME. Seeing as we're touching all but one usage of __is_processor(), rename it to something less ugly and more indicative of what it does, which is simply to check the PVR version. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ipr.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 467dc38246f..6077c43edac 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -6304,14 +6304,14 @@ static struct ata_port_info sata_port_info = {
6304 6304
6305#ifdef CONFIG_PPC_PSERIES 6305#ifdef CONFIG_PPC_PSERIES
6306static const u16 ipr_blocked_processors[] = { 6306static const u16 ipr_blocked_processors[] = {
6307 PV_NORTHSTAR, 6307 PVR_NORTHSTAR,
6308 PV_PULSAR, 6308 PVR_PULSAR,
6309 PV_POWER4, 6309 PVR_POWER4,
6310 PV_ICESTAR, 6310 PVR_ICESTAR,
6311 PV_SSTAR, 6311 PVR_SSTAR,
6312 PV_POWER4p, 6312 PVR_POWER4p,
6313 PV_630, 6313 PVR_630,
6314 PV_630p 6314 PVR_630p
6315}; 6315};
6316 6316
6317/** 6317/**
@@ -6331,7 +6331,7 @@ static int ipr_invalid_adapter(struct ipr_ioa_cfg *ioa_cfg)
6331 6331
6332 if ((ioa_cfg->type == 0x5702) && (ioa_cfg->pdev->revision < 4)) { 6332 if ((ioa_cfg->type == 0x5702) && (ioa_cfg->pdev->revision < 4)) {
6333 for (i = 0; i < ARRAY_SIZE(ipr_blocked_processors); i++){ 6333 for (i = 0; i < ARRAY_SIZE(ipr_blocked_processors); i++){
6334 if (__is_processor(ipr_blocked_processors[i])) 6334 if (pvr_version_is(ipr_blocked_processors[i]))
6335 return 1; 6335 return 1;
6336 } 6336 }
6337 } 6337 }