V4L/DVB (13957): IR: Fix sysfs attributes declaration
authorFrancesco Lavra <francescolavra@interfree.it>
Tue, 29 Dec 2009 18:48:04 +0000 (15:48 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:34 +0000 (15:10 -0300)
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>
drivers/media/IR/ir-sysfs.c

index 6ec7f89..bf5fbcd 100644 (file)
@@ -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,
 };
 
 /**