[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <cad969ccd0b4524d1ecdc1c5ac58e5f2009d0073.1490953290.git.geliangtang@gmail.com>
Date: Sun, 9 Apr 2017 09:34:06 +0800
From: Geliang Tang <geliangtang@...il.com>
To: Patrice Chotard <patrice.chotard@...com>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Geliang Tang <geliangtang@...il.com>,
linux-arm-kernel@...ts.infradead.org, kernel@...inux.com,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 10/12] [media] c8sectpfe: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@...il.com>
---
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c
index 7652ce2..59280ac 100644
--- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c
+++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c
@@ -865,9 +865,8 @@ static int c8sectpfe_probe(struct platform_device *pdev)
}
/* Setup timer interrupt */
- init_timer(&fei->timer);
- fei->timer.function = c8sectpfe_timer_interrupt;
- fei->timer.data = (unsigned long)fei;
+ setup_timer(&fei->timer, c8sectpfe_timer_interrupt,
+ (unsigned long)fei);
mutex_init(&fei->lock);
--
2.9.3
Powered by blists - more mailing lists