diff options
Diffstat (limited to 'drivers/media/radio/radio-zoltrix.c')
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 0d43e8401eb5..3a9a7772ae51 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -247,7 +247,7 @@ static int vidioc_g_tuner(struct file *file, void *priv, | |||
247 | struct v4l2_tuner *v) | 247 | struct v4l2_tuner *v) |
248 | { | 248 | { |
249 | struct video_device *dev = video_devdata(file); | 249 | struct video_device *dev = video_devdata(file); |
250 | struct zol_device *zol = dev->priv; | 250 | struct zol_device *zol = video_get_drvdata(dev); |
251 | 251 | ||
252 | if (v->index > 0) | 252 | if (v->index > 0) |
253 | return -EINVAL; | 253 | return -EINVAL; |
@@ -278,7 +278,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
278 | struct v4l2_frequency *f) | 278 | struct v4l2_frequency *f) |
279 | { | 279 | { |
280 | struct video_device *dev = video_devdata(file); | 280 | struct video_device *dev = video_devdata(file); |
281 | struct zol_device *zol = dev->priv; | 281 | struct zol_device *zol = video_get_drvdata(dev); |
282 | 282 | ||
283 | zol->curfreq = f->frequency; | 283 | zol->curfreq = f->frequency; |
284 | zol_setfreq(zol, zol->curfreq); | 284 | zol_setfreq(zol, zol->curfreq); |
@@ -289,7 +289,7 @@ static int vidioc_g_frequency(struct file *file, void *priv, | |||
289 | struct v4l2_frequency *f) | 289 | struct v4l2_frequency *f) |
290 | { | 290 | { |
291 | struct video_device *dev = video_devdata(file); | 291 | struct video_device *dev = video_devdata(file); |
292 | struct zol_device *zol = dev->priv; | 292 | struct zol_device *zol = video_get_drvdata(dev); |
293 | 293 | ||
294 | f->type = V4L2_TUNER_RADIO; | 294 | f->type = V4L2_TUNER_RADIO; |
295 | f->frequency = zol->curfreq; | 295 | f->frequency = zol->curfreq; |
@@ -315,7 +315,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv, | |||
315 | struct v4l2_control *ctrl) | 315 | struct v4l2_control *ctrl) |
316 | { | 316 | { |
317 | struct video_device *dev = video_devdata(file); | 317 | struct video_device *dev = video_devdata(file); |
318 | struct zol_device *zol = dev->priv; | 318 | struct zol_device *zol = video_get_drvdata(dev); |
319 | 319 | ||
320 | switch (ctrl->id) { | 320 | switch (ctrl->id) { |
321 | case V4L2_CID_AUDIO_MUTE: | 321 | case V4L2_CID_AUDIO_MUTE: |
@@ -332,7 +332,7 @@ static int vidioc_s_ctrl(struct file *file, void *priv, | |||
332 | struct v4l2_control *ctrl) | 332 | struct v4l2_control *ctrl) |
333 | { | 333 | { |
334 | struct video_device *dev = video_devdata(file); | 334 | struct video_device *dev = video_devdata(file); |
335 | struct zol_device *zol = dev->priv; | 335 | struct zol_device *zol = video_get_drvdata(dev); |
336 | 336 | ||
337 | switch (ctrl->id) { | 337 | switch (ctrl->id) { |
338 | case V4L2_CID_AUDIO_MUTE: | 338 | case V4L2_CID_AUDIO_MUTE: |
@@ -453,7 +453,7 @@ static int __init zoltrix_init(void) | |||
453 | return -ENXIO; | 453 | return -ENXIO; |
454 | } | 454 | } |
455 | 455 | ||
456 | zoltrix_radio.priv = &zoltrix_unit; | 456 | video_set_drvdata(&zoltrix_radio, &zoltrix_unit); |
457 | if (!request_region(io, 2, "zoltrix")) { | 457 | if (!request_region(io, 2, "zoltrix")) { |
458 | printk(KERN_ERR "zoltrix: port 0x%x already in use\n", io); | 458 | printk(KERN_ERR "zoltrix: port 0x%x already in use\n", io); |
459 | return -EBUSY; | 459 | return -EBUSY; |