Commit 46f2c21c authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Mauro Carvalho Chehab

V4L/DVB (8682): V4L: fix return value of register video func

If a wrong device type is used with video_register_device_index() it should
better return an error number, instead of a constant.
Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent b045979d
...@@ -281,7 +281,7 @@ int video_register_device_index(struct video_device *vfd, int type, int nr, ...@@ -281,7 +281,7 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
default: default:
printk(KERN_ERR "%s called with unknown type: %d\n", printk(KERN_ERR "%s called with unknown type: %d\n",
__func__, type); __func__, type);
return -1; return -EINVAL;
} }
/* pick a minor number */ /* pick a minor number */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment