]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ppc64/kernel/viopath.c
[PATCH] ppc64: Split out generic rtas code from pSeries_pci.c.
[linux-2.6-omap-h63xx.git] / arch / ppc64 / kernel / viopath.c
index ef524042e496034f788e737e015d4817cd59b7d7..2a6c4f01c45ed6d320581fdd62eaa2698ce155d9 100644 (file)
@@ -485,7 +485,7 @@ int viopath_open(HvLpIndex remoteLp, int subtype, int numReq)
        unsigned long flags;
        int tempNumAllocated;
 
-       if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid))
+       if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
                return -EINVAL;
 
        subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
@@ -556,7 +556,7 @@ int viopath_close(HvLpIndex remoteLp, int subtype, int numReq)
        int numOpen;
        struct alloc_parms parms;
 
-       if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid))
+       if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
                return -EINVAL;
 
        subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;