]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/lan91c96.c
x86: ich6-gpio: Add Intel Tunnel Creek GPIO support
[karo-tx-uboot.git] / drivers / net / lan91c96.c
index 2bf00685337fb7e1df4c1729e2049e5133703b83..229658abc8eaedd5ca3d502b8677e942f960928c 100644 (file)
@@ -766,7 +766,7 @@ static int lan91c96_detect_chip(struct eth_device *dev)
        SMC_SELECT_BANK(dev, 3);
        chip_id = (SMC_inw(dev, 0xA) & LAN91C96_REV_CHIPID) >> 4;
        SMC_SELECT_BANK(dev, 0);
-       for (r = 0; r < sizeof(supported_chips) / sizeof(struct id_type); r++)
+       for (r = 0; r < ARRAY_SIZE(supported_chips); r++)
                if (chip_id == supported_chips[r].id)
                        return r;
        return 0;