aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorFrancesco Lavra <francescolavra@interfree.it>2009-12-29 13:48:04 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:34 -0500
commit9714d587f138c1034b8fbeb14573e5f0320a2367 (patch)
tree96ac424b234d69e18313e1d262f04aa1040fa825 /drivers/media
parent211635654cb6785a5c102af6488f6b1d83b9a3c6 (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.c1
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
126static struct attribute *ir_dev_attrs[] = { 126static 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/**