mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
Merge "media: rc: add LIRC_CAN_SEND for the buffer allocation to support IR TX" into odroidn2-4.9.y
This commit is contained in:
@@ -360,7 +360,7 @@ int lirc_register_driver(struct lirc_driver *d)
|
||||
if (minor < 0)
|
||||
return minor;
|
||||
|
||||
if (LIRC_CAN_REC(d->features)) {
|
||||
if (LIRC_CAN_REC(d->features) || LIRC_CAN_SEND(d->features)) {
|
||||
err = lirc_allocate_buffer(irctls[minor]);
|
||||
if (err)
|
||||
lirc_unregister_driver(minor);
|
||||
|
||||
Reference in New Issue
Block a user