diff options
author | Francesco Lavra <francescolavra@interfree.it> | 2009-12-29 13:48:04 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:34 -0500 |
commit | 9714d587f138c1034b8fbeb14573e5f0320a2367 (patch) | |
tree | 96ac424b234d69e18313e1d262f04aa1040fa825 /drivers/media | |
parent | 211635654cb6785a5c102af6488f6b1d83b9a3c6 (diff) |
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: Francesco Lavra <francescolavra@interfree.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/IR/ir-sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c index 6ec7f89d5142..bf5fbcd84238 100644 --- a/drivers/media/IR/ir-sysfs.c +++ b/drivers/media/IR/ir-sysfs.c | |||
@@ -125,6 +125,7 @@ static DEVICE_ATTR(current_protocol, S_IRUGO | S_IWUSR, | |||
125 | 125 | ||
126 | static struct attribute *ir_dev_attrs[] = { | 126 | static struct attribute *ir_dev_attrs[] = { |
127 | &dev_attr_current_protocol.attr, | 127 | &dev_attr_current_protocol.attr, |
128 | NULL, | ||
128 | }; | 129 | }; |
129 | 130 | ||
130 | /** | 131 | /** |