diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-23 00:29:03 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-23 00:29:03 -0200 |
commit | 3967ce8c026d574a6d51824795dc798f90db65bd (patch) | |
tree | 9af686d50b122b3eb040ec07cd88d67c2776bed2 /linux/drivers/media/video/usbvision/usbvision-video.c | |
parent | 7731e329cb5e3c27b6cd3649e613b7f55b63cd51 (diff) | |
download | mediapointer-dvb-s2-3967ce8c026d574a6d51824795dc798f90db65bd.tar.gz mediapointer-dvb-s2-3967ce8c026d574a6d51824795dc798f90db65bd.tar.bz2 |
Reverting changeset 10298. It were committed with a wrong From: meta-tag
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/usbvision/usbvision-video.c')
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-video.c | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c index 47d672da5..2622de003 100644 --- a/linux/drivers/media/video/usbvision/usbvision-video.c +++ b/linux/drivers/media/video/usbvision/usbvision-video.c @@ -329,7 +329,7 @@ static void usbvision_create_sysfs(struct video_device *vdev) return; } while (0); - dev_err(&vdev->dev, "%s error: %d\n", __func__, res); + err("%s error: %d\n", __func__, res); } static void usbvision_remove_sysfs(struct video_device *vdev) @@ -487,9 +487,8 @@ static int vidioc_g_register (struct file *file, void *priv, /* NT100x has a 8-bit register space */ errCode = usbvision_read_reg(usbvision, reg->reg&0xff); if (errCode < 0) { - dev_err(&usbvision->vdev->dev, - "%s: VIDIOC_DBG_G_REGISTER failed: error %d\n", - __func__, errCode); + err("%s: VIDIOC_DBG_G_REGISTER failed: error %d", + __func__, errCode); return errCode; } reg->val = errCode; @@ -508,9 +507,8 @@ static int vidioc_s_register (struct file *file, void *priv, /* NT100x has a 8-bit register space */ errCode = usbvision_write_reg(usbvision, reg->reg&0xff, reg->val); if (errCode < 0) { - dev_err(&usbvision->vdev->dev, - "%s: VIDIOC_DBG_S_REGISTER failed: error %d\n", - __func__, errCode); + err("%s: VIDIOC_DBG_S_REGISTER failed: error %d", + __func__, errCode); return errCode; } return 0; @@ -1191,9 +1189,7 @@ static int usbvision_radio_open(struct file *file) mutex_lock(&usbvision->lock); if (usbvision->user) { - dev_err(&usbvision->rdev->dev, - "%s: Someone tried to open an already opened USBVision Radio!\n", - __func__); + err("%s: Someone tried to open an already opened USBVision Radio!", __func__); errCode = -EBUSY; } else { @@ -1417,8 +1413,7 @@ static struct video_device *usbvision_vdev_init(struct usb_usbvision *usbvision, struct video_device *vdev; if (usb_dev == NULL) { - dev_err(&usbvision->dev->dev, - "%s: usbvision->dev is not set\n", __func__); + err("%s: usbvision->dev is not set", __func__); return NULL; } @@ -1529,9 +1524,7 @@ static int __devinit usbvision_register_video(struct usb_usbvision *usbvision) return 0; err_exit: - dev_err(&usbvision->dev->dev, - "USBVision[%d]: video_register_device() failed\n", - usbvision->nr); + err("USBVision[%d]: video_register_device() failed", usbvision->nr); usbvision_unregister_video(usbvision); return -1; } @@ -1682,20 +1675,20 @@ static int __devinit usbvision_probe(struct usb_interface *intf, } endpoint = &interface->endpoint[1].desc; if (!usb_endpoint_xfer_isoc(endpoint)) { - dev_err(&intf->dev, "%s: interface %d. has non-ISO endpoint!\n", + err("%s: interface %d. has non-ISO endpoint!", __func__, ifnum); - dev_err(&intf->dev, "%s: Endpoint attributes %d", + err("%s: Endpoint attributes %d", __func__, endpoint->bmAttributes); return -ENODEV; } if (usb_endpoint_dir_out(endpoint)) { - dev_err(&intf->dev, "%s: interface %d. has ISO OUT endpoint!\n", + err("%s: interface %d. has ISO OUT endpoint!", __func__, ifnum); return -ENODEV; } if ((usbvision = usbvision_alloc(dev)) == NULL) { - dev_err(&intf->dev, "%s: couldn't allocate USBVision struct\n", __func__); + err("%s: couldn't allocate USBVision struct", __func__); return -ENOMEM; } @@ -1718,7 +1711,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf, usbvision->alt_max_pkt_size = kmalloc(32* usbvision->num_alt,GFP_KERNEL); if (usbvision->alt_max_pkt_size == NULL) { - dev_err(&intf->dev, "usbvision: out of memory!\n"); + err("usbvision: out of memory!\n"); mutex_unlock(&usbvision->lock); return -ENOMEM; } @@ -1779,8 +1772,7 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf) PDEBUG(DBG_PROBE, ""); if (usbvision == NULL) { - dev_err(&usbvision->dev->dev, - "%s: usb_get_intfdata() failed\n", __func__); + err("%s: usb_get_intfdata() failed", __func__); return; } usb_set_intfdata (intf, NULL); |