test/py: test_ut.py: Ensure we use bytes
[oweals/u-boot.git] / drivers / pci / pci-rcar-gen2.c
index cbaba1986a423a54f9ef3280f897ed5faa7fe43c..d913d53f3c3382dd3060a60021920190d010ac2d 100644 (file)
@@ -97,7 +97,7 @@ static int rcar_gen2_pci_addr_valid(pci_dev_t d, uint offset)
 
        /* Only one EHCI/OHCI device built-in */
        slot = PCI_DEV(d);
-       if (slot > 2)
+       if (slot != 1 && slot != 2)
                return -EINVAL;
 
        /* bridge logic only has registers to 0x40 */