diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc64/kernel/viopath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/viopath.c b/arch/ppc64/kernel/viopath.c index ef524042e496..2a6c4f01c45e 100644 --- a/arch/ppc64/kernel/viopath.c +++ b/arch/ppc64/kernel/viopath.c | |||
@@ -485,7 +485,7 @@ int viopath_open(HvLpIndex remoteLp, int subtype, int numReq) | |||
485 | unsigned long flags; | 485 | unsigned long flags; |
486 | int tempNumAllocated; | 486 | int tempNumAllocated; |
487 | 487 | ||
488 | if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid)) | 488 | if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid)) |
489 | return -EINVAL; | 489 | return -EINVAL; |
490 | 490 | ||
491 | subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; | 491 | subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; |
@@ -556,7 +556,7 @@ int viopath_close(HvLpIndex remoteLp, int subtype, int numReq) | |||
556 | int numOpen; | 556 | int numOpen; |
557 | struct alloc_parms parms; | 557 | struct alloc_parms parms; |
558 | 558 | ||
559 | if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid)) | 559 | if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid)) |
560 | return -EINVAL; | 560 | return -EINVAL; |
561 | 561 | ||
562 | subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; | 562 | subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; |