Download tasks/csa159/pair_139579/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 3.02 kB
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_139579/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/csa159/pair_139579/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_139579/patch.diff
3.02 kB
| diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf.c b/drivers/media/usb/dvb-usb-v2/mxl111sf.c | |
| index 7865fa0a8295..cd5861a30b6f 100644 | |
| --- a/drivers/media/usb/dvb-usb-v2/mxl111sf.c | |
| +++ b/drivers/media/usb/dvb-usb-v2/mxl111sf.c | |
| static int mxl111sf_init(struct dvb_usb_device *d) | |
| .len = sizeof(eeprom), .buf = eeprom }, | |
| }; | |
| - mutex_init(&state->msg_lock); | |
| - | |
| ret = get_chip_info(state); | |
| if (mxl_fail(ret)) | |
| pr_err("failed to get chip info during probe"); | |
| static int mxl111sf_get_stream_config_dvbt(struct dvb_frontend *fe, | |
| return 0; | |
| } | |
| +static int mxl111sf_probe(struct dvb_usb_device *dev) | |
| +{ | |
| + struct mxl111sf_state *state = d_to_priv(dev); | |
| + | |
| + mutex_init(&state->msg_lock); | |
| + return 0; | |
| +} | |
| + | |
| static struct dvb_usb_device_properties mxl111sf_props_dvbt = { | |
| .driver_name = KBUILD_MODNAME, | |
| .owner = THIS_MODULE, | |
| static struct dvb_usb_device_properties mxl111sf_props_dvbt = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_dvbt, | |
| .tuner_attach = mxl111sf_attach_tuner, | |
| static struct dvb_usb_device_properties mxl111sf_props_atsc = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_atsc, | |
| .tuner_attach = mxl111sf_attach_tuner, | |
| static struct dvb_usb_device_properties mxl111sf_props_mh = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_mh, | |
| .tuner_attach = mxl111sf_attach_tuner, | |
| static struct dvb_usb_device_properties mxl111sf_props_atsc_mh = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_atsc_mh, | |
| .tuner_attach = mxl111sf_attach_tuner, | |
| static struct dvb_usb_device_properties mxl111sf_props_mercury = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_mercury, | |
| .tuner_attach = mxl111sf_attach_tuner, | |
| static struct dvb_usb_device_properties mxl111sf_props_mercury_mh = { | |
| .generic_bulk_ctrl_endpoint = 0x02, | |
| .generic_bulk_ctrl_endpoint_response = 0x81, | |
| + .probe = mxl111sf_probe, | |
| .i2c_algo = &mxl111sf_i2c_algo, | |
| .frontend_attach = mxl111sf_frontend_attach_mercury_mh, | |
| .tuner_attach = mxl111sf_attach_tuner, |