[media] em28xx-cards: properly initialize the device bitmap

Instead of just creating a long int, use DECLARE_BITMAP().

No functional changes.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+5 -5
+5 -5
drivers/media/usb/em28xx/em28xx-cards.c
··· 66 66 67 67 68 68 /* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */ 69 - static unsigned long em28xx_devused; 69 + DECLARE_BITMAP(em28xx_devused, EM28XX_MAXBOARDS); 70 70 71 71 struct em28xx_hash_table { 72 72 unsigned long hash; ··· 2885 2885 usb_put_dev(dev->udev); 2886 2886 2887 2887 /* Mark device as unused */ 2888 - clear_bit(dev->devno, &em28xx_devused); 2888 + clear_bit(dev->devno, em28xx_devused); 2889 2889 2890 2890 mutex_unlock(&dev->lock); 2891 2891 }; ··· 3094 3094 3095 3095 /* Check to see next free device and mark as used */ 3096 3096 do { 3097 - nr = find_first_zero_bit(&em28xx_devused, EM28XX_MAXBOARDS); 3097 + nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS); 3098 3098 if (nr >= EM28XX_MAXBOARDS) { 3099 3099 /* No free device slots */ 3100 3100 printk(DRIVER_NAME ": Supports only %i em28xx boards.\n", ··· 3102 3102 retval = -ENOMEM; 3103 3103 goto err_no_slot; 3104 3104 } 3105 - } while (test_and_set_bit(nr, &em28xx_devused)); 3105 + } while (test_and_set_bit(nr, em28xx_devused)); 3106 3106 3107 3107 /* Don't register audio interfaces */ 3108 3108 if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) { ··· 3355 3355 kfree(dev); 3356 3356 3357 3357 err: 3358 - clear_bit(nr, &em28xx_devused); 3358 + clear_bit(nr, em28xx_devused); 3359 3359 3360 3360 err_no_slot: 3361 3361 usb_put_dev(udev);