]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/char/moxa.c
[PATCH] vr41xx: ARRAY_SIZE cleanup
[mv-sheeva.git] / drivers / char / moxa.c
index 95f7046ff059184c5c7b8024e83881c922c25289..46a3a8ccd65f04fe71ad20c607b43e843b1167d3 100644 (file)
@@ -339,7 +339,7 @@ static int __init moxa_init(void)
 
        init_MUTEX(&moxaBuffSem);
        moxaDriver->owner = THIS_MODULE;
-       moxaDriver->name = "ttya";
+       moxaDriver->name = "ttyMX";
        moxaDriver->devfs_name = "tts/a";
        moxaDriver->major = ttymajor;
        moxaDriver->minor_start = 0;
@@ -448,7 +448,7 @@ static int __init moxa_init(void)
 #ifdef CONFIG_PCI
        {
                struct pci_dev *p = NULL;
-               int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
+               int n = ARRAY_SIZE(moxa_pcibrds) - 1;
                i = 0;
                while (i < n) {
                        while ((p = pci_get_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)