aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-30 06:28:22 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-30 06:28:22 (GMT)
commit9fdfa5c23022e16f9b0aeb27d39836070353d4c5 (patch)
tree248c33aa6fdfc01305c82923f3d0397db9402a6b
parentb292a7f58a1cceb0c85a3026b4c15e470d149061 (diff)
Update backports/v4.17_proc_create_single.patch
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--backports/v4.17_proc_create_single.patch16
1 files changed, 7 insertions, 9 deletions
diff --git a/backports/v4.17_proc_create_single.patch b/backports/v4.17_proc_create_single.patch
index 05ed932..994bfed 100644
--- a/backports/v4.17_proc_create_single.patch
+++ b/backports/v4.17_proc_create_single.patch
@@ -1,10 +1,10 @@
diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164/saa7164-core.c
-index d697e1a..fca36a4 100644
+index f5ad3cf207d3..6962758c6765 100644
--- a/drivers/media/pci/saa7164/saa7164-core.c
+++ b/drivers/media/pci/saa7164/saa7164-core.c
-@@ -1122,11 +1122,23 @@ static int saa7164_proc_show(struct seq_file *m, void *v)
- return 0;
- }
+@@ -1124,9 +1124,21 @@ static int saa7164_proc_show(struct seq_file *m, void *v)
+
+ static struct proc_dir_entry *saa7164_pe;
+static int saa7164_proc_open(struct inode *inode, struct file *filp)
+{
@@ -20,10 +20,8 @@ index d697e1a..fca36a4 100644
+
static int saa7164_proc_create(void)
{
- struct proc_dir_entry *pe;
-
-- pe = proc_create_single("saa7164", S_IRUGO, NULL, saa7164_proc_show);
-+ pe = proc_create("saa7164", S_IRUGO, NULL, &saa7164_proc_fops);
- if (!pe)
+- saa7164_pe = proc_create_single("saa7164", 0444, NULL, saa7164_proc_show);
++ saa7164_pe = proc_create("saa7164", 0444, NULL, &saa7164_proc_fops);
+ if (!saa7164_pe)
return -ENOMEM;

Privacy Policy