]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/media/usb/au0828/au0828-input.c
[media] rc-main: assign driver type during allocation
[karo-tx-linux.git] / drivers / media / usb / au0828 / au0828-input.c
index 1e66e7828d8f2921ad954e5568534ebb55dbffde..9ec919c68482df5c5c97e4a41d421f71411422ee 100644 (file)
@@ -298,7 +298,7 @@ int au0828_rc_register(struct au0828_dev *dev)
                return -ENODEV;
 
        ir = kzalloc(sizeof(*ir), GFP_KERNEL);
-       rc = rc_allocate_device();
+       rc = rc_allocate_device(RC_DRIVER_IR_RAW);
        if (!ir || !rc)
                goto error;
 
@@ -343,7 +343,6 @@ int au0828_rc_register(struct au0828_dev *dev)
        rc->input_id.product = le16_to_cpu(dev->usbdev->descriptor.idProduct);
        rc->dev.parent = &dev->usbdev->dev;
        rc->driver_name = "au0828-input";
-       rc->driver_type = RC_DRIVER_IR_RAW;
        rc->allowed_protocols = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32 |
                                                                RC_BIT_RC5;