Commit 9714d587 authored by Francesco Lavra's avatar Francesco Lavra Committed by Mauro Carvalho Chehab

V4L/DVB (13957): IR: Fix sysfs attributes declaration

This patch fixes the declaration of the sysfs attributes for IR's, which
must be a NULL-terminated array of struct attribute *.
Without this patch, my machine crashes when inserting a DVB card.
Signed-off-by: default avatarFrancesco Lavra <francescolavra@interfree.it>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 21163565
...@@ -125,6 +125,7 @@ static DEVICE_ATTR(current_protocol, S_IRUGO | S_IWUSR, ...@@ -125,6 +125,7 @@ static DEVICE_ATTR(current_protocol, S_IRUGO | S_IWUSR,
static struct attribute *ir_dev_attrs[] = { static struct attribute *ir_dev_attrs[] = {
&dev_attr_current_protocol.attr, &dev_attr_current_protocol.attr,
NULL,
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment