aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFrancesco Lavra <francescolavra@interfree.it>2009-12-29 15:48:04 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 15:10:34 -0300
commit9714d587f138c1034b8fbeb14573e5f0320a2367 (patch)
tree96ac424b234d69e18313e1d262f04aa1040fa825 /drivers
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')
-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 6ec7f89d514..bf5fbcd8423 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,
static struct attribute *ir_dev_attrs[] = {
&dev_attr_current_protocol.attr,
+ NULL,
};
/**