summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2006-07-25 09:31:42 -0300
committerTrent Piepho <xyzzy@speakeasy.org>2006-07-25 09:31:42 -0300
commiteae539a732ce1383b14bea7a37e7204cba2805fc (patch)
tree81f68b1edc062bccb01c86c0ba1027c9b807343d /v4l/compat.h
parent6b10723421c5d71d041d1dc54cc19d782a290638 (diff)
downloadmediapointer-dvb-s2-eae539a732ce1383b14bea7a37e7204cba2805fc.tar.gz
mediapointer-dvb-s2-eae539a732ce1383b14bea7a37e7204cba2805fc.tar.bz2
videodev: Handle class_device related errors
From: Trent Piepho <xyzzy@speakeasy.org> Add proper error checking and roll-back for failure of class_device_create_file() in videodev.c. Print error messages and unroll partially created sysfs entries. Also, failure of class_device_register() in video_register_device() is handled correctly. It was failing to de-allocate the minor number. This must be done in video_register_device(), since the caller has no way of knowing if failure occurred before or after the class device was registered. Also added an error message if video_register_device() is called with an unknown type, which should never happen. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/compat.h')
0 files changed, 0 insertions, 0 deletions