[media] cx88: don't use atomic_t for core->users
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / cx88 / cx88.h
index e3d56c2352036a4585bd3892f4a846d8bfb380ee..a399a8b086babf4e9facf27a690cdb577a5b6427 100644 (file)
@@ -389,8 +389,8 @@ struct cx88_core {
        struct mutex               lock;
        /* various v4l controls */
        u32                        freq;
-       atomic_t                   users;
-       atomic_t                   mpeg_users;
+       int                        users;
+       int                        mpeg_users;
 
        /* cx88-video needs to access cx8802 for hybrid tuner pll access. */
        struct cx8802_dev          *dvbdev;
@@ -505,12 +505,10 @@ struct cx8802_driver {
        int (*suspend)(struct pci_dev *pci_dev, pm_message_t state);
        int (*resume)(struct pci_dev *pci_dev);
 
-       /* MPEG 8802 -> mini driver - Driver probe and configuration */
+       /* Callers to the following functions must hold core->lock */
 
-       /* Caller must _not_ hold core->lock */
+       /* MPEG 8802 -> mini driver - Driver probe and configuration */
        int (*probe)(struct cx8802_driver *drv);
-
-       /* Caller must hold core->lock */
        int (*remove)(struct cx8802_driver *drv);
 
        /* MPEG 8802 -> mini driver - Access for hardware control */