Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1619417 > unrolled thread

[PATCH 09/12] [media] s5p-mfc: use setup_timer

Started byGeliang Tang <geliangtang@gmail.com>
First post2017-04-09 03:40 +0200
Last post2017-04-10 10:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 09/12] [media] s5p-mfc: use setup_timer Geliang Tang <geliangtang@gmail.com> - 2017-04-09 03:40 +0200
    Re: [PATCH 09/12] [media] s5p-mfc: use setup_timer Sylwester Nawrocki <s.nawrocki@samsung.com> - 2017-04-10 10:40 +0200

#1619417 — [PATCH 09/12] [media] s5p-mfc: use setup_timer

FromGeliang Tang <geliangtang@gmail.com>
Date2017-04-09 03:40 +0200
Subject[PATCH 09/12] [media] s5p-mfc: use setup_timer
Message-ID<tu9ZE-4FS-11@gated-at.bofh.it>
Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/media/platform/s5p-mfc/s5p_mfc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index bb0a588..2c363aa 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -1266,9 +1266,8 @@ static int s5p_mfc_probe(struct platform_device *pdev)
 	dev->hw_lock = 0;
 	INIT_WORK(&dev->watchdog_work, s5p_mfc_watchdog_worker);
 	atomic_set(&dev->watchdog_cnt, 0);
-	init_timer(&dev->watchdog_timer);
-	dev->watchdog_timer.data = (unsigned long)dev;
-	dev->watchdog_timer.function = s5p_mfc_watchdog;
+	setup_timer(&dev->watchdog_timer, s5p_mfc_watchdog,
+		    (unsigned long)dev);
 
 	/* Initialize HW ops and commands based on MFC version */
 	s5p_mfc_init_hw_ops(dev);
-- 
2.9.3

[toc] | [next] | [standalone]


#1619723

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2017-04-10 10:40 +0200
Message-ID<tuD1E-6Jp-33@gated-at.bofh.it>
In reply to#1619417
On 04/09/2017 03:34 AM, Geliang Tang wrote:
> Use setup_timer() instead of init_timer() to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>

Applied, thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web