aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx25821/cx25821.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-04-13 06:07:40 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 17:02:02 -0400
commita8f35ce3d6f5b776463f03403e0319c2415401f7 (patch)
tree0b089c96d8e4bd306edd495a0e5a697fd7a907a0 /drivers/media/pci/cx25821/cx25821.h
parentbfef0d35e57c08dff295e3203d30f9ca4077415a (diff)
[media] cx25821: remove unnecessary global devlist
This device list is not necessary. The kernel already has all that information, so just use that instead. Also remove a bogus refcount and some dead 'private_free' code in the alsa driver. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx25821/cx25821.h')
-rw-r--r--drivers/media/pci/cx25821/cx25821.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/pci/cx25821/cx25821.h b/drivers/media/pci/cx25821/cx25821.h
index d7e71f46defc..195b00407b5a 100644
--- a/drivers/media/pci/cx25821/cx25821.h
+++ b/drivers/media/pci/cx25821/cx25821.h
@@ -238,9 +238,9 @@ struct cx25821_channel {
238 int cif_width; 238 int cif_width;
239}; 239};
240 240
241struct snd_card;
242
241struct cx25821_dev { 243struct cx25821_dev {
242 struct list_head devlist;
243 atomic_t refcount;
244 struct v4l2_device v4l2_dev; 244 struct v4l2_device v4l2_dev;
245 245
246 /* pci stuff */ 246 /* pci stuff */
@@ -252,6 +252,8 @@ struct cx25821_dev {
252 u8 __iomem *bmmio; 252 u8 __iomem *bmmio;
253 int pci_irqmask; 253 int pci_irqmask;
254 int hwrevision; 254 int hwrevision;
255 /* used by cx25821-alsa */
256 struct snd_card *card;
255 257
256 u32 clk_freq; 258 u32 clk_freq;
257 259
@@ -403,9 +405,6 @@ static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev)
403#define cx25821_call_all(dev, o, f, args...) \ 405#define cx25821_call_all(dev, o, f, args...) \
404 v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) 406 v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)
405 407
406extern struct list_head cx25821_devlist;
407extern struct mutex cx25821_devlist_mutex;
408
409extern struct cx25821_board cx25821_boards[]; 408extern struct cx25821_board cx25821_boards[];
410extern struct cx25821_subid cx25821_subids[]; 409extern struct cx25821_subid cx25821_subids[];
411 410