]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/crypto/hifn_795x.c
[ARM] dma: fix some comments in dma-mapping.h
[linux-2.6-omap-h63xx.git] / drivers / crypto / hifn_795x.c
index d0f71a1c1a4b538c5b3fa8a0c957b3c203585d25..4d22b21bd3e30ad872adaef9b87cd003904832bd 100644 (file)
@@ -895,7 +895,7 @@ static int hifn_enable_crypto(struct hifn_device *dev)
        char *offtbl = NULL;
        int i;
 
-       for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) {
+       for (i = 0; i < ARRAY_SIZE(pci2id); i++) {
                if (pci2id[i].pci_vendor == dev->pdev->vendor &&
                                pci2id[i].pci_prod == dev->pdev->device) {
                        offtbl = pci2id[i].card_id;