Skip to content

Commit

Permalink
V4L/DVB (13957): IR: Fix sysfs attributes declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Francesco Lavra authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 2116356 commit 9714d58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/IR/ir-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

/**
Expand Down

0 comments on commit 9714d58

Please sign in to comment.