From 2d7689fdc8fa70fe6d3fbd2003a8c1cdaaa786b3 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 21 Feb 2007 12:14:46 -0200 Subject: Backport: make file_operations const From: Mauro Carvalho Chehab Backport a kernel patch by Arjan van de Ven that made all file_operations instances const. Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/radio/miropcm20-rds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/radio/miropcm20-rds.c') diff --git a/linux/drivers/media/radio/miropcm20-rds.c b/linux/drivers/media/radio/miropcm20-rds.c index c1b1db65e..c93490ec9 100644 --- a/linux/drivers/media/radio/miropcm20-rds.c +++ b/linux/drivers/media/radio/miropcm20-rds.c @@ -105,7 +105,7 @@ static ssize_t rds_f_read(struct file *file, char __user *buffer, size_t length, } } -static struct file_operations rds_fops = { +static const struct file_operations rds_fops = { .owner = THIS_MODULE, .read = rds_f_read, .open = rds_f_open, -- cgit v1.2.3 From 137bc05fa17aaf28ca2de6ecbf7231920fcc4176 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 21 Feb 2007 12:42:20 -0200 Subject: Backport of git changeset cd354f1ae75e6466a7e31b727faede57a1f89ca5 From: Mauro Carvalho Chehab Backport a changeset from Schmielau that removes uneeded includes for linux/sched.h Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/radio/miropcm20-rds.c | 1 - 1 file changed, 1 deletion(-) (limited to 'linux/drivers/media/radio/miropcm20-rds.c') diff --git a/linux/drivers/media/radio/miropcm20-rds.c b/linux/drivers/media/radio/miropcm20-rds.c index c93490ec9..aed114773 100644 --- a/linux/drivers/media/radio/miropcm20-rds.c +++ b/linux/drivers/media/radio/miropcm20-rds.c @@ -14,7 +14,6 @@ #include #include #include -#include /* current, TASK_*, schedule_timeout() */ #include #include #include "miropcm20-rds-core.h" -- cgit v1.2.3