aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/radio/radio-sf16fmr2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c
index c432c44bd634..f7c8b000404f 100644
--- a/drivers/media/radio/radio-sf16fmr2.c
+++ b/drivers/media/radio/radio-sf16fmr2.c
@@ -476,8 +476,7 @@ static int __init fmr2_init(void)
476 return -EBUSY; 476 return -EBUSY;
477 } 477 }
478 478
479 if(video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr)==-1) 479 if (video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr) < 0) {
480 {
481 release_region(io, 2); 480 release_region(io, 2);
482 return -EINVAL; 481 return -EINVAL;
483 } 482 }