flexcop-usb.c (649cd16c438f51d4cd777e71ca1f47f6e0c5e65d) flexcop-usb.c (1b976fc6d684e3282914cdbe7a8d68fdce19095c)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
4 * flexcop-usb.c - covers the USB part
5 * see flexcop.c for copyright information
6 */
7#define FC_LOG_PREFIX "flexcop_usb"
8#include "flexcop-usb.h"

--- 530 unchanged lines hidden (view full) ---

539static int flexcop_usb_probe(struct usb_interface *intf,
540 const struct usb_device_id *id)
541{
542 struct usb_device *udev = interface_to_usbdev(intf);
543 struct flexcop_usb *fc_usb = NULL;
544 struct flexcop_device *fc = NULL;
545 int ret;
546
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
4 * flexcop-usb.c - covers the USB part
5 * see flexcop.c for copyright information
6 */
7#define FC_LOG_PREFIX "flexcop_usb"
8#include "flexcop-usb.h"

--- 530 unchanged lines hidden (view full) ---

539static int flexcop_usb_probe(struct usb_interface *intf,
540 const struct usb_device_id *id)
541{
542 struct usb_device *udev = interface_to_usbdev(intf);
543 struct flexcop_usb *fc_usb = NULL;
544 struct flexcop_device *fc = NULL;
545 int ret;
546
547 if (intf->cur_altsetting->desc.bNumEndpoints < 1)
548 return -ENODEV;
549
547 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) {
548 err("out of memory\n");
549 return -ENOMEM;
550 }
551
552 /* general flexcop init */
553 fc_usb = fc->bus_specific;
554 fc_usb->fc_dev = fc;

--- 70 unchanged lines hidden ---
550 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) {
551 err("out of memory\n");
552 return -ENOMEM;
553 }
554
555 /* general flexcop init */
556 fc_usb = fc->bus_specific;
557 fc_usb->fc_dev = fc;

--- 70 unchanged lines hidden ---