video_device.priv is not allowed to touch and it will be actually removed in
near future. Use video_get_drvdata() instead.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
unsigned int cmd, void *arg)
{
struct video_device *dev = video_devdata(file);
- struct radio_device *card = dev->priv;
+ struct radio_device *card = video_get_drvdata(dev);
switch (cmd) {
case VIDIOCGCAP: {
unsigned int cmd, unsigned long arg)
{
struct video_device *dev = video_devdata(file);
- struct radio_device *card = dev->priv;
+ struct radio_device *card = video_get_drvdata(dev);
int ret;
down(&card->lock);