diff options
Diffstat (limited to 'drivers/media/radio/radio-cadet.c')
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 6166e726ed72..04c3698d32e4 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -682,7 +682,7 @@ static int __init cadet_init(void) | |||
682 | } | 682 | } |
683 | if (!request_region(io,2,"cadet")) | 683 | if (!request_region(io,2,"cadet")) |
684 | goto fail; | 684 | goto fail; |
685 | if(video_register_device(&cadet_radio,VFL_TYPE_RADIO,radio_nr)==-1) { | 685 | if (video_register_device(&cadet_radio, VFL_TYPE_RADIO, radio_nr) < 0) { |
686 | release_region(io,2); | 686 | release_region(io,2); |
687 | goto fail; | 687 | goto fail; |
688 | } | 688 | } |