Skip to content

Commit 6c94e14

Browse files
jwrdegoedemchehab
authored andcommitted
[media] radio-si470x-usb: Remove software version check
We've an user reporting a device with a software version of 0, which works fine. Once we lower the version check to accept version 0 it becomes a nop, so remove it completely. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent c59e6d5 commit 6c94e14

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/media/radio/si470x/radio-si470x-usb.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ MODULE_PARM_DESC(max_rds_errors, "RDS maximum block errors: *1*");
142142
/**************************************************************************
143143
* Software/Hardware Versions from Scratch Page
144144
**************************************************************************/
145-
#define RADIO_SW_VERSION_NOT_BOOTLOADABLE 6
146-
#define RADIO_SW_VERSION 1
147145
#define RADIO_HW_VERSION 1
148146

149147

@@ -682,15 +680,6 @@ static int si470x_usb_driver_probe(struct usb_interface *intf,
682680
}
683681
dev_info(&intf->dev, "software version %d, hardware version %d\n",
684682
radio->software_version, radio->hardware_version);
685-
if (radio->software_version < RADIO_SW_VERSION) {
686-
dev_warn(&intf->dev,
687-
"This driver is known to work with "
688-
"software version %hu,\n", RADIO_SW_VERSION);
689-
dev_warn(&intf->dev,
690-
"but the device has software version %hu.\n",
691-
radio->software_version);
692-
version_warning = 1;
693-
}
694683
if (radio->hardware_version < RADIO_HW_VERSION) {
695684
dev_warn(&intf->dev,
696685
"This driver is known to work with "

0 commit comments

Comments
 (0)